Package jadex.future
Interface ITerminableFuture<E>
- All Superinterfaces:
IBackwardCommandFuture
,IFuture<E>
,Supplier<E>
- All Known Subinterfaces:
IPullIntermediateFuture<E>
,IPullSubscriptionIntermediateFuture<E>
,ISubscriptionIntermediateFuture<E>
,ITerminableIntermediateFuture<E>
- All Known Implementing Classes:
PullIntermediateDelegationFuture
,PullIntermediateFuture
,PullSubscriptionIntermediateDelegationFuture
,PullSubscriptionIntermediateFuture
,SubscriptionIntermediateDelegationFuture
,SubscriptionIntermediateFuture
,TerminableDelegationFuture
,TerminableFuture
,TerminableIntermediateDelegationFuture
,TerminableIntermediateFuture
Interface for a future that can be terminated
from caller side. A termination request leads
to setException() being called with a
FutureTerminatedException.
-
Field Summary
-
Method Summary
Methods inherited from interface jadex.future.IBackwardCommandFuture
sendBackwardCommand
Methods inherited from interface jadex.future.IFuture
addResultListener, catchEx, catchEx, catchEx, delegate, delegateTo, get, get, get, get, get, getException, isDone, printOnEx, then, thenApply, thenApply, thenCompose, thenCompose
-
Method Details
-
terminate
void terminate()Terminate the future. The exception will be set to FutureTerminatedException. -
terminate
Terminate the future and supply a custom reason.
-