Package org.jruby.ext.timeout
Class Timeout.TimeoutTask
java.lang.Object
org.jruby.ext.timeout.Timeout.TimeoutTask
- All Implemented Interfaces:
Runnable
- Enclosing class:
- Timeout
-
Field Summary
FieldsModifier and TypeFieldDescription(package private) final RubyThread(package private) final IRubyObject(package private) final Object(package private) final AtomicBoolean(package private) final RubyString(package private) final RubyModule -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateTimeoutTask(RubyThread currentThread, RubyModule timeout, AtomicBoolean latch, Object id, IRubyObject exception, RubyString message) -
Method Summary
Modifier and TypeMethodDescription(package private) static Timeout.TimeoutTasknewAnonymousTask(RubyThread currentThread, RubyModule timeout, AtomicBoolean latch, Object id, RubyString message) (package private) static Timeout.TimeoutTasknewTaskWithException(RubyThread currentThread, RubyModule timeout, AtomicBoolean latch, IRubyObject exception, RubyString message) private voidprivate voidvoidrun()
-
Field Details
-
currentThread
-
latch
-
timeout
-
id
-
exception
-
message
-
-
Constructor Details
-
TimeoutTask
private TimeoutTask(RubyThread currentThread, RubyModule timeout, AtomicBoolean latch, Object id, IRubyObject exception, RubyString message)
-
-
Method Details
-
newAnonymousTask
static Timeout.TimeoutTask newAnonymousTask(RubyThread currentThread, RubyModule timeout, AtomicBoolean latch, Object id, RubyString message) -
newTaskWithException
static Timeout.TimeoutTask newTaskWithException(RubyThread currentThread, RubyModule timeout, AtomicBoolean latch, IRubyObject exception, RubyString message) -
run
public void run() -
raiseAnonymous
private void raiseAnonymous() -
raiseException
private void raiseException()
-