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,
boolean realtime)
Suspend the execution of the suspendable.
|
static final java.lang.ThreadLocal<ISuspendable> SUSPENDABLE
void suspend(Future<?> future, long timeout, boolean realtime)
future - The future to wait for.timeout - The timeout (-1 for no timeout, -2 for default timeout).realtime - Flag if timeout is realtime (in contrast to simulation time).void resume(Future<?> future)
future - The future that issues the resume.java.lang.Object getMonitor()