public class TerminableIntermediateDelegationFuture<E> extends IntermediateFuture<E> implements ITerminableIntermediateFuture<E>
IForwardCommandFuture.Type
DEBUG, EMPTY, NO_STACK_COMPACTION, STACK
DONE
Constructor and Description |
---|
TerminableIntermediateDelegationFuture()
Create a new future.
|
TerminableIntermediateDelegationFuture(ITerminableIntermediateFuture<?> src)
Create a new future.
|
Modifier and Type | Method and Description |
---|---|
ITerminableIntermediateFuture<?> |
getSource()
Get the src.
|
void |
sendBackwardCommand(Object info)
Send a backward command in direction of the source.
|
void |
setSource(ITerminableIntermediateFuture<?> src)
Set the source.
|
void |
terminate()
Terminate the future.
|
void |
terminate(Exception reason)
Terminate the future and supply a custom reason.
|
addIntermediateResult, addIntermediateResultIfUndone, addResultListener, getIntermediateResults, getNextIntermediateResult, getNextIntermediateResult, hasNextIntermediateResult, setFinished, setFinishedIfUndone, setResult, setResultIfUndone
abortGet, addForwardCommand, get, get, get, get, getEmptyFuture, getException, isDone, removeForwardCommand, sendForwardCommand, setException, setExceptionIfUndone
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getIntermediateResults, getNextIntermediateResult, hasNextIntermediateResult
addResultListener, get, get, get, get, getException, isDone
public TerminableIntermediateDelegationFuture()
public TerminableIntermediateDelegationFuture(ITerminableIntermediateFuture<?> src)
public void setSource(ITerminableIntermediateFuture<?> src)
public ITerminableIntermediateFuture<?> getSource()
public void terminate()
terminate
in interface ITerminableFuture<Collection<E>>
public void terminate(Exception reason)
terminate
in interface ITerminableFuture<Collection<E>>
public void sendBackwardCommand(Object info)
sendBackwardCommand
in interface IBackwardCommandFuture
info
- The command info.Copyright © 2013. All Rights Reserved.