public class TerminableDelegationFuture<E> extends Future<E> implements ITerminableFuture<E>
IForwardCommandFuture.Type| Modifier and Type | Field and Description | 
|---|---|
| protected boolean | notifiedFlag if source has been notified. | 
| protected boolean | notifyFlag if source has to be notified. | 
| protected java.lang.Exception | reasonException used for notification. | 
| protected ITerminableFuture<?> | srcThe termination source. | 
| protected java.util.List<java.lang.Object> | storedinfosThe list of stored infos, to be sent when src is connected. | 
CALLER_QUEUED, CALLER_RESUMED, CALLER_SUSPENDED, callers, creation, DEBUG, exception, fcommands, first, listener, listeners, NO_STACK_COMPACTION, NONE, result, resultavailable, STACK, undone, UNSET| Constructor and Description | 
|---|
| TerminableDelegationFuture()Create a new future. | 
| TerminableDelegationFuture(ITerminableFuture<?> src)Create a new future. | 
| Modifier and Type | Method and Description | 
|---|---|
| void | sendBackwardCommand(java.lang.Object info)Send a backward command in direction of the source. | 
| void | setTerminationSource(ITerminableFuture<?> src)Set the termination source. | 
| void | terminate()Terminate the future. | 
| void | terminate(java.lang.Exception reason)Terminate the future and supply a custom reason. | 
abortGet, acceptEither, addForwardCommand, addResultListener, addResultListener, addResultListener, applyToEither, doSetException, doSetResult, get, get, get, get, get, getEmptyFuture, getException, getFuture, hasResultListener, isDone, notifyListener, notifyListenerCommand, removeForwardCommand, resume, sendForwardCommand, setException, setExceptionIfUndone, setResult, setResultIfUndone, thenAccept, thenAccept, thenApply, thenApply, thenCombine, thenCompose, thenComposeclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitacceptEither, addResultListener, addResultListener, addResultListener, applyToEither, get, get, get, get, get, getException, isDone, thenAccept, thenAccept, thenApply, thenApply, thenCombine, thenCompose, thenComposeprotected ITerminableFuture<?> src
protected boolean notify
protected boolean notified
protected java.lang.Exception reason
protected java.util.List<java.lang.Object> storedinfos
public TerminableDelegationFuture()
public TerminableDelegationFuture(ITerminableFuture<?> src)
public void setTerminationSource(ITerminableFuture<?> src)
public void terminate()
terminate in interface ITerminableFuture<E>public void terminate(java.lang.Exception reason)
terminate in interface ITerminableFuture<E>public void sendBackwardCommand(java.lang.Object info)
sendBackwardCommand in interface IBackwardCommandFutureinfo - The command info.