public class TerminableIntermediateDelegationFuture<E> extends IntermediateFuture<E> implements ITerminableIntermediateFuture<E>
DEBUG, EMPTY, NO_STACK_COMPACTION, STACKDONE| 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, setResultIfUndoneget, get, getEmptyFuture, getException, isDone, setException, setExceptionIfUndoneequals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetIntermediateResults, getNextIntermediateResult, hasNextIntermediateResultaddResultListener, get, get, getException, isDonepublic 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.