public interface ISuspendable
Modifier and Type | Field and Description |
---|---|
static java.lang.ThreadLocal<ISuspendable> |
SUSPENDABLE
The component suspendable for a component thread.
|
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
getMonitor()
Get the monitor for waiting.
|
void |
resume(Future<?> future)
Resume the execution of the suspendable.
|
void |
suspend(Future<?> future,
long timeout)
Suspend the execution of the suspendable.
|
static final java.lang.ThreadLocal<ISuspendable> SUSPENDABLE
void suspend(Future<?> future, long timeout)
future
- The future to wait for.timeout
- The timeout (-1 for no timeout, -2 for default timeout).void resume(Future<?> future)
future
- The future that issues the resume.java.lang.Object getMonitor()