org.objectweb.celtix.bindings
Class AsyncFuture
java.lang.Object
org.objectweb.celtix.bindings.AsyncFuture
- All Implemented Interfaces:
- Future<ObjectMessageContext>
public class AsyncFuture
- extends Object
- implements Future<ObjectMessageContext>
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AsyncFuture
public AsyncFuture(Future<InputStreamMessageContext> fInputStreamMsgContext,
AbstractClientBinding aClientBinding,
DataBindingCallback cback,
HandlerInvoker hInvoker,
ObjectMessageContext ctx)
get
public ObjectMessageContext get()
throws InterruptedException,
ExecutionException
- Specified by:
get
in interface Future<ObjectMessageContext>
- Throws:
InterruptedException
ExecutionException
cancel
public boolean cancel(boolean mayInterruptIfRunning)
- Specified by:
cancel
in interface Future<ObjectMessageContext>
get
public ObjectMessageContext get(long timeout,
TimeUnit unit)
throws InterruptedException,
ExecutionException,
TimeoutException
- Specified by:
get
in interface Future<ObjectMessageContext>
- Throws:
InterruptedException
ExecutionException
TimeoutException
isCancelled
public boolean isCancelled()
- Specified by:
isCancelled
in interface Future<ObjectMessageContext>
isDone
public boolean isDone()
- Specified by:
isDone
in interface Future<ObjectMessageContext>