public class TerminableDelegationFuture<E> extends Future<E> implements ITerminableFuture<E>
IForwardCommandFuture.Type
DEBUG, EMPTY, NO_STACK_COMPACTION, STACK
Constructor and Description |
---|
TerminableDelegationFuture()
Create a new future.
|
TerminableDelegationFuture(ITerminableFuture<?> src)
Create a new future.
|
Modifier and Type | Method and Description |
---|---|
void |
sendBackwardCommand(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(Exception reason)
Terminate the future and supply a custom reason.
|
abortGet, addForwardCommand, addResultListener, get, get, get, get, getEmptyFuture, getException, isDone, removeForwardCommand, sendForwardCommand, setException, setExceptionIfUndone, setResult, setResultIfUndone
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addResultListener, get, get, get, get, getException, isDone
public TerminableDelegationFuture()
public TerminableDelegationFuture(ITerminableFuture<?> src)
public void setTerminationSource(ITerminableFuture<?> src)
public void terminate()
terminate
in interface ITerminableFuture<E>
public void terminate(Exception reason)
terminate
in interface ITerminableFuture<E>
public void sendBackwardCommand(Object info)
sendBackwardCommand
in interface IBackwardCommandFuture
info
- The command info.Copyright © 2013. All Rights Reserved.