public class TerminableIntermediateDelegationFuture<E> extends IntermediateFuture<E> implements ITerminableIntermediateFuture<E>
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 |
---|---|
void |
setTerminationSource(ITerminableIntermediateFuture<?> src)
Set the termination source.
|
void |
terminate()
Terminate the future.
|
void |
terminate(Exception reason)
Terminate the future and supply a custom reason.
|
addIntermediateResult, addIntermediateResultIfUndone, addResultListener, getIntermediateResults, getNextIntermediateResult, hasNextIntermediateResult, setFinished, setFinishedIfUndone, setResult, setResultIfUndone
get, get, getEmptyFuture, getException, isDone, setException, setExceptionIfUndone
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getIntermediateResults, getNextIntermediateResult, hasNextIntermediateResult
addResultListener, get, get, getException, isDone
public TerminableIntermediateDelegationFuture()
public TerminableIntermediateDelegationFuture(ITerminableIntermediateFuture<?> src)
public void setTerminationSource(ITerminableIntermediateFuture<?> src)
public void terminate()
terminate
in interface ITerminableFuture<Collection<E>>
public void terminate(Exception reason)
terminate
in interface ITerminableFuture<Collection<E>>
Copyright © 2012. All Rights Reserved.