Package jadex.commons.future
Interface ITerminableFuture<E>
-
- All Superinterfaces:
IBackwardCommandFuture
,IFuture<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
public interface ITerminableFuture<E> extends IFuture<E>, IBackwardCommandFuture
Interface for a future that can be terminated from caller side. A termination request leads to setException() being called with a FutureTerminatedException.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
terminate()
Terminate the future.void
terminate(java.lang.Exception reason)
Terminate the future and supply a custom reason.-
Methods inherited from interface jadex.commons.future.IBackwardCommandFuture
sendBackwardCommand
-
Methods inherited from interface jadex.commons.future.IFuture
addResultListener, catchEx, catchEx, catchEx, delegate, delegateTo, get, get, get, get, get, getException, isDone, then, thenApply, thenApply, thenCompose, thenCompose
-
-