public class ThreadSuspendable extends Object implements ISuspendable
SUSPENDABLE| Constructor and Description |
|---|
ThreadSuspendable() |
| Modifier and Type | Method and Description |
|---|---|
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.
|
public void suspend(Future<?> future, long timeout)
suspend in interface ISuspendabletimeout - The timeout.future - The future to wait for.public void resume(Future<?> future)
resume in interface ISuspendablefuture - The future that issues the resume.public Object getMonitor()
getMonitor in interface ISuspendableCopyright © 2015. All Rights Reserved.