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