| Modifier and Type | Class and Description |
|---|---|
| private static class |
| Modifier and Type | Field and Description |
|---|---|
| public static final String | |
| private static final ByteList |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| private static RubyString | |
| private static RubyClass | |
| private static void | |
| public static void | |
| private static boolean | |
| private static IRubyObject | raiseTimeoutErrorIfMatches(ThreadContext context, final RubyModule timeout, final RaiseException ex, final Object id)
|
| public static IRubyObject | |
| public static IRubyObject | timeout(final ThreadContext context, IRubyObject recv, IRubyObject seconds, IRubyObject exceptionType, Block block)
|
| public static IRubyObject | timeout(final ThreadContext context, IRubyObject recv, IRubyObject seconds, IRubyObject exceptionType, IRubyObject message, Block block)
|
| private static IRubyObject | yieldWithTimeout(ScheduledThreadPoolExecutor executor, ThreadContext context, final IRubyObject seconds, final Block block, final Runnable runnable, final AtomicBoolean latch)
|
| EXECUTOR_VARIABLE | back to summary |
|---|---|
| public static final String EXECUTOR_VARIABLE | |
| TIMEOUT_MESSAGE | back to summary |
|---|---|
| private static final ByteList TIMEOUT_MESSAGE | |
| Timeout | back to summary |
|---|---|
| public Timeout() | |
| defaultTimeoutMessage | back to summary |
|---|---|
| private static RubyString defaultTimeoutMessage(final ThreadContext context) | |
| getTimeoutError | back to summary |
|---|---|
| private static RubyClass getTimeoutError(ThreadContext context, final RubyModule timeout) | |
| killTimeoutThread | back to summary |
|---|---|
| private static void killTimeoutThread(ThreadContext context, ScheduledFuture<V> timeoutFuture, AtomicBoolean latch) | |
| load | back to summary |
|---|---|
| public static void load(Ruby runtime) | |
| nilOrZeroSeconds | back to summary |
|---|---|
| private static boolean nilOrZeroSeconds(final ThreadContext context, final IRubyObject seconds) | |
| raiseTimeoutErrorIfMatches | back to summary |
|---|---|
| private static IRubyObject raiseTimeoutErrorIfMatches(ThreadContext context, final RubyModule timeout, final RaiseException ex, final Object id) | |
| timeout | back to summary |
|---|---|
public static IRubyObject timeout(final ThreadContext context, IRubyObject recv, IRubyObject seconds, Block block)
| |
| timeout | back to summary |
|---|---|
public static IRubyObject timeout(final ThreadContext context, IRubyObject recv, IRubyObject seconds, IRubyObject exceptionType, Block block)
| |
| timeout | back to summary |
|---|---|
public static IRubyObject timeout(final ThreadContext context, IRubyObject recv, IRubyObject seconds, IRubyObject exceptionType, IRubyObject message, Block block)
| |
| yieldWithTimeout | back to summary |
|---|---|
| private static IRubyObject yieldWithTimeout(ScheduledThreadPoolExecutor executor, ThreadContext context, final IRubyObject seconds, final Block block, final Runnable runnable, final AtomicBoolean latch) throws RaiseException | |
| Modifier and Type | Field and Description |
|---|---|
| pack-priv final RubyThread | |
| pack-priv final IRubyObject | |
| pack-priv final Object | |
| pack-priv final AtomicBoolean | |
| pack-priv final RubyString | |
| pack-priv final RubyModule |
| Access | Constructor and Description |
|---|---|
| private | TimeoutTask(final RubyThread currentThread, final RubyModule timeout, final AtomicBoolean latch, final Object id, final IRubyObject exception, final RubyString message)
|
| Modifier and Type | Method and Description |
|---|---|
| pack-priv static Timeout. | newAnonymousTask(final RubyThread currentThread, final RubyModule timeout, final AtomicBoolean latch, final Object id, final RubyString message)
|
| pack-priv static Timeout. | newTaskWithException(final RubyThread currentThread, final RubyModule timeout, final AtomicBoolean latch, final IRubyObject exception, final RubyString message)
|
| private void | |
| private void | |
| public void |
| currentThread | back to summary |
|---|---|
| pack-priv final RubyThread currentThread | |
| exception | back to summary |
|---|---|
| pack-priv final IRubyObject exception | |
| id | back to summary |
|---|---|
| pack-priv final Object id | |
| latch | back to summary |
|---|---|
| pack-priv final AtomicBoolean latch | |
| message | back to summary |
|---|---|
| pack-priv final RubyString message | |
| timeout | back to summary |
|---|---|
| pack-priv final RubyModule timeout | |
| TimeoutTask | back to summary |
|---|---|
| private TimeoutTask(final RubyThread currentThread, final RubyModule timeout, final AtomicBoolean latch, final Object id, final IRubyObject exception, final RubyString message) | |
| newAnonymousTask | back to summary |
|---|---|
| pack-priv static Timeout. | |
| newTaskWithException | back to summary |
|---|---|
| pack-priv static Timeout. | |
| raiseAnonymous | back to summary |
|---|---|
| private void raiseAnonymous(ThreadContext context) | |
| raiseException | back to summary |
|---|---|
| private void raiseException() | |
| run | back to summary |
|---|---|
| public void run() Implements java. Doc from java. Runs this operation. | |