Package jadex.commons.future
Class PullIntermediateDelegationFuture<E>
- java.lang.Object
-
- jadex.commons.future.Future<java.util.Collection<E>>
-
- jadex.commons.future.IntermediateFuture<E>
-
- jadex.commons.future.TerminableIntermediateDelegationFuture<E>
-
- jadex.commons.future.PullIntermediateDelegationFuture<E>
-
- All Implemented Interfaces:
IBackwardCommandFuture
,IForwardCommandFuture
,IFuture<java.util.Collection<E>>
,IIntermediateFuture<E>
,IPullIntermediateFuture<E>
,ITerminableFuture<java.util.Collection<E>>
,ITerminableIntermediateFuture<E>
public class PullIntermediateDelegationFuture<E> extends TerminableIntermediateDelegationFuture<E> implements IPullIntermediateFuture<E>
Delegation future for pull future.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface jadex.commons.future.IForwardCommandFuture
IForwardCommandFuture.Type
-
-
Field Summary
Fields Modifier and Type Field Description protected int
notifycnt
Flag if source has to be notified.-
Fields inherited from class jadex.commons.future.TerminableIntermediateDelegationFuture
notified, notify, reason, src, storedinfos
-
Fields inherited from class jadex.commons.future.IntermediateFuture
icallers, indices, intermediate, maxresultcnt, notcommand, results
-
Fields inherited from class jadex.commons.future.Future
CALLER_QUEUED, CALLER_RESUMED, CALLER_SUSPENDED, callers, creation, DEBUG, exception, first, listeners, NO_STACK_COMPACTION, NONE, NOTIFICATIONS, notificount, result, resultavailable, undone, UNSET
-
Fields inherited from interface jadex.commons.future.IIntermediateFuture
DONE
-
-
Constructor Summary
Constructors Constructor Description PullIntermediateDelegationFuture()
Create a new future.PullIntermediateDelegationFuture(IPullIntermediateFuture<?> src)
Create a new future.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
doNotify()
Possibly notify the termination source.void
pullIntermediateResult()
Pull an intermediate result.-
Methods inherited from class jadex.commons.future.TerminableIntermediateDelegationFuture
getSource, sendBackwardCommand, setSource, terminate, terminate
-
Methods inherited from class jadex.commons.future.IntermediateFuture
addIntermediateResult, addIntermediateResultIfUndone, addIntermediateResultListener, addResultListener, catchErr, doAddIntermediateResult, doGetNextIntermediateResult, doSetException, doSetFinished, doSetResult, finished, flatMapAsync, getIntermediateResults, getNextIntermediateResult, getNextIntermediateResult, getNextIntermediateResult, getNotificationCommand, getResultCount, hasNextIntermediateResult, hasNextIntermediateResult, mapAsync, mapAsync, max, next, notifyIntermediateResult, resume, resumeIntermediate, scheduleMaxNotification, setFinished, setFinishedIfUndone, setMaxResultCount, storeResult
-
Methods inherited from class jadex.commons.future.Future
abortGet, catchErr, catchErr, delegate, doAddResultListener, doStartScheduledNotifications, executeNotification, get, get, get, get, get, getEmptyFuture, getException, getFuture, hasResultListener, isDone, scheduleNotification, scheduleNotification, sendForwardCommand, setException, setExceptionIfUndone, setResult, setResultIfUndone, startScheduledNotifications, then, thenAccept, thenAccept, thenApply, thenApply, thenCombine, thenCompose, thenCompose
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface jadex.commons.future.IBackwardCommandFuture
sendBackwardCommand
-
Methods inherited from interface jadex.commons.future.IFuture
addResultListener, catchErr, catchErr, catchErr, delegate, get, get, get, get, get, getException, isDone, then, thenApply, thenApply, thenCompose, thenCompose
-
Methods inherited from interface jadex.commons.future.IIntermediateFuture
finished, flatMapAsync, getIntermediateResults, getNextIntermediateResult, getNextIntermediateResult, hasNextIntermediateResult, hasNextIntermediateResult, mapAsync, mapAsync, max, next
-
Methods inherited from interface jadex.commons.future.ITerminableFuture
terminate, terminate
-
-
-
-
Constructor Detail
-
PullIntermediateDelegationFuture
public PullIntermediateDelegationFuture()
Create a new future.
-
PullIntermediateDelegationFuture
public PullIntermediateDelegationFuture(IPullIntermediateFuture<?> src)
Create a new future.
-
-
Method Detail
-
doNotify
protected void doNotify()
Possibly notify the termination source.- Overrides:
doNotify
in classTerminableIntermediateDelegationFuture<E>
-
pullIntermediateResult
public void pullIntermediateResult()
Pull an intermediate result.- Specified by:
pullIntermediateResult
in interfaceIPullIntermediateFuture<E>
-
-