public class TerminableDelegationFuture<E> extends Future<E> implements ITerminableFuture<E>
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 |
setTerminationSource(ITerminableFuture<?> src)
Set the termination source.
|
void |
terminate()
Terminate the future.
|
void |
terminate(Exception reason)
Terminate the future and supply a custom reason.
|
addResultListener, get, get, getEmptyFuture, getException, isDone, setException, setExceptionIfUndone, setResult, setResultIfUndone
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addResultListener, 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>
Copyright © 2012. All Rights Reserved.