public class NoOpFuture<E> extends Object implements NotifyingNotifiableFuture<E>
| Constructor and Description |
|---|
NoOpFuture(E returnValue) |
| Modifier and Type | Method and Description |
|---|---|
NotifyingFuture<E> |
attachListener(FutureListener<E> eFutureListener)
Attaches a listener and returns the same future instance, to allow for 'building'.
|
boolean |
cancel(boolean b) |
E |
get() |
E |
get(long l,
TimeUnit timeUnit) |
boolean |
isCancelled() |
boolean |
isDone() |
void |
notifyDone() |
void |
setNetworkFuture(Future<E> eFuture) |
public NoOpFuture(E returnValue)
public boolean isCancelled()
isCancelled in interface Future<E>public E get() throws InterruptedException, ExecutionException
get in interface Future<E>InterruptedExceptionExecutionExceptionpublic E get(long l, TimeUnit timeUnit) throws InterruptedException, ExecutionException, TimeoutException
get in interface Future<E>InterruptedExceptionExecutionExceptionTimeoutExceptionpublic void notifyDone()
notifyDone in interface NotifyingNotifiableFuture<E>public void setNetworkFuture(Future<E> eFuture)
setNetworkFuture in interface NotifyingNotifiableFuture<E>public NotifyingFuture<E> attachListener(FutureListener<E> eFutureListener)
NotifyingFutureattachListener in interface NotifyingFuture<E>eFutureListener - listener to attachCopyright © 2012 JBoss by Red Hat. All Rights Reserved.