Package jadex.bridge
Class TimeoutIntermediateResultListener<E>
- java.lang.Object
- 
- jadex.bridge.TimeoutResultListener<java.util.Collection<E>>
- 
- jadex.bridge.TimeoutIntermediateResultListener<E>
 
 
- 
- All Implemented Interfaces:
- IFunctionalExceptionListener,- IFunctionalIntermediateFinishedListener<E>,- IFunctionalIntermediateResultListener<E>,- IFunctionalResultListener<java.util.Collection<E>>,- IFutureCommandResultListener<java.util.Collection<E>>,- IIntermediateResultListener<E>,- IResultListener<java.util.Collection<E>>,- IUndoneIntermediateResultListener<E>,- IUndoneResultListener<java.util.Collection<E>>
 
 public class TimeoutIntermediateResultListener<E> extends TimeoutResultListener<java.util.Collection<E>> implements IIntermediateResultListener<E>, IUndoneIntermediateResultListener<E> 
- 
- 
Constructor SummaryConstructors Constructor Description TimeoutIntermediateResultListener(long timeout, IExternalAccess exta)Create a new listener.TimeoutIntermediateResultListener(long timeout, IExternalAccess exta, boolean realtime, java.lang.Object message, IIntermediateResultListener<E> listener)Create a new listener.TimeoutIntermediateResultListener(long timeout, IExternalAccess exta, IIntermediateResultListener<E> listener)Create a new listener.
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description voidfinished()Declare that the future is finished.voidfinishedIfUndone()Declare that the future is finished.protected IIntermediateResultListener<E>getIntermediateResultListener()voidintermediateResultAvailable(E result)Called when an intermediate result is available.voidintermediateResultAvailableIfUndone(E result)Called when an intermediate result is available.booleanisUndone()Get the undone.- 
Methods inherited from class jadex.bridge.TimeoutResultListenercancel, commandAvailable, exceptionOccurred, exceptionOccurredIfUndone, initTimer, resultAvailable, resultAvailableIfUndone, timeoutOccurred
 - 
Methods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 - 
Methods inherited from interface jadex.commons.future.IFunctionalExceptionListenerexceptionOccurred
 - 
Methods inherited from interface jadex.commons.future.IFunctionalResultListenerresultAvailable
 - 
Methods inherited from interface jadex.commons.future.IUndoneResultListenerexceptionOccurredIfUndone, resultAvailableIfUndone
 
- 
 
- 
- 
- 
Constructor Detail- 
TimeoutIntermediateResultListenerpublic TimeoutIntermediateResultListener(long timeout, IExternalAccess exta)Create a new listener.
 - 
TimeoutIntermediateResultListenerpublic TimeoutIntermediateResultListener(long timeout, IExternalAccess exta, IIntermediateResultListener<E> listener)Create a new listener.
 - 
TimeoutIntermediateResultListenerpublic TimeoutIntermediateResultListener(long timeout, IExternalAccess exta, boolean realtime, java.lang.Object message, IIntermediateResultListener<E> listener)Create a new listener.
 
- 
 - 
Method Detail- 
getIntermediateResultListenerprotected IIntermediateResultListener<E> getIntermediateResultListener() 
 - 
intermediateResultAvailablepublic void intermediateResultAvailable(E result) Called when an intermediate result is available.- Specified by:
- intermediateResultAvailablein interface- IFunctionalIntermediateResultListener<E>
- Specified by:
- intermediateResultAvailablein interface- IIntermediateResultListener<E>
- Parameters:
- result- The result.
 
 - 
finishedpublic void finished() Declare that the future is finished. This method is only called for intermediate futures, i.e. when this method is called it is guaranteed that the intermediateResultAvailable method was called for all intermediate results before.- Specified by:
- finishedin interface- IFunctionalIntermediateFinishedListener<E>
- Specified by:
- finishedin interface- IIntermediateResultListener<E>
 
 - 
intermediateResultAvailableIfUndonepublic void intermediateResultAvailableIfUndone(E result) Called when an intermediate result is available.- Specified by:
- intermediateResultAvailableIfUndonein interface- IUndoneIntermediateResultListener<E>
- Parameters:
- result- The result.
 
 - 
finishedIfUndonepublic void finishedIfUndone() Declare that the future is finished. This method is only called for intermediate futures, i.e. when this method is called it is guaranteed that the intermediateResultAvailable method was called for all intermediate results before.- Specified by:
- finishedIfUndonein interface- IUndoneIntermediateResultListener<E>
 
 - 
isUndonepublic boolean isUndone() Get the undone.- Returns:
- The undone.
 
 
- 
 
-