public class NoOpFuture<E> extends Object implements NotifyingNotifiableFuture<E>
| Constructor and Description |
|---|
NoOpFuture(E returnValue) |
NoOpFuture(Throwable t) |
| 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(E result)
Notify the listeners that the operation has finished.
|
void |
notifyException(Throwable exception)
Notify the listeners that the operation has finished.
|
void |
setFuture(Future<E> eFuture)
Setup the future which is wrapped by implementation of this interface.
|
public NoOpFuture(E returnValue)
public NoOpFuture(Throwable t)
public boolean cancel(boolean b)
public boolean isCancelled()
public boolean isDone()
public E get()
public void notifyDone(E result)
NotifyingNotifiableFuturenotifyDone in interface NotifyingNotifiableFuture<E>public void notifyException(Throwable exception)
NotifyingNotifiableFuturenotifyException in interface NotifyingNotifiableFuture<E>public void setFuture(Future<E> eFuture)
NotifyingNotifiableFuturesetFuture in interface NotifyingNotifiableFuture<E>public NotifyingFuture<E> attachListener(FutureListener<E> eFutureListener)
NotifyingFutureattachListener in interface NotifyingFuture<E>eFutureListener - listener to attachCopyright © 2015 JBoss, a division of Red Hat. All rights reserved.