Package jadex.commons.future
Interface ISubscriptionIntermediateFuture<E>
-
- All Superinterfaces:
IBackwardCommandFuture
,IFuture<java.util.Collection<E>>
,IIntermediateFuture<E>
,ITerminableFuture<java.util.Collection<E>>
,ITerminableIntermediateFuture<E>
- All Known Subinterfaces:
IPullSubscriptionIntermediateFuture<E>
- All Known Implementing Classes:
PullSubscriptionIntermediateDelegationFuture
,PullSubscriptionIntermediateFuture
,SubscriptionIntermediateDelegationFuture
,SubscriptionIntermediateFuture
public interface ISubscriptionIntermediateFuture<E> extends ITerminableIntermediateFuture<E>
The subscription intermediate future does not save the results but instead uses a fire and forget semantics. A listener gets current intermediate results in intermediateResultAvailable(). In getIntermediateResults() null is returned unless blocking access is also used.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
addQuietListener(IResultListener<java.util.Collection<E>> listener)
Add a listener which does not consume the initial results.java.util.Collection<E>
getIntermediateResults()
Get the intermediate results that are available.-
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
-
Methods inherited from interface jadex.commons.future.IIntermediateFuture
asStream, asStream, done, finished, getNextIntermediateResult, getNextIntermediateResult, hasNextIntermediateResult, hasNextIntermediateResult, max, next
-
Methods inherited from interface jadex.commons.future.ITerminableFuture
terminate, terminate
-
-
-
-
Method Detail
-
addQuietListener
void addQuietListener(IResultListener<java.util.Collection<E>> listener)
Add a listener which does not consume the initial results. I.e. even if it is the first listener to be added to this future, a second listener will still receive the initial results.
-
getIntermediateResults
java.util.Collection<E> getIntermediateResults()
Get the intermediate results that are available. Note: The semantics of this method is different to the normal intermediate future due to the fire-and-forget-semantics!- Specified by:
getIntermediateResults
in interfaceIIntermediateFuture<E>
- Returns:
- 1)
-
-