public class ThreadSuspendable extends Object implements ISuspendable
Constructor and Description |
---|
ThreadSuspendable()
Create a new suspendable.
|
ThreadSuspendable(Object monitor)
Create a new suspendable.
|
public ThreadSuspendable()
public ThreadSuspendable(Object monitor)
public void suspend(IFuture<?> future, long timeout)
suspend
in interface ISuspendable
timeout
- The timeout.future
- The future to wait for.public void resume(IFuture<?> future)
resume
in interface ISuspendable
future
- The future that issues the resume.public Object getMonitor()
getMonitor
in interface ISuspendable
Copyright © 2012. All Rights Reserved.