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>
InterruptedException
ExecutionException
public E get(long l, TimeUnit timeUnit) throws InterruptedException, ExecutionException, TimeoutException
get
in interface Future<E>
InterruptedException
ExecutionException
TimeoutException
public 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)
NotifyingFuture
attachListener
in interface NotifyingFuture<E>
eFutureListener
- listener to attachCopyright © 2014 JBoss, a division of Red Hat. All Rights Reserved.