Package jadex.commons.future
Class DefaultTuple2ResultListener<E,F>
- java.lang.Object
- 
- jadex.commons.future.DefaultTuple2ResultListener<E,F>
 
- 
- All Implemented Interfaces:
- IFunctionalExceptionListener,- IFunctionalIntermediateFinishedListener<TupleResult>,- IFunctionalIntermediateResultListener<TupleResult>,- IFunctionalResultListener<java.util.Collection<TupleResult>>,- IIntermediateResultListener<TupleResult>,- IResultListener<java.util.Collection<TupleResult>>,- ITuple2ResultListener<E,F>
 
 public abstract class DefaultTuple2ResultListener<E,F> extends java.lang.Object implements ITuple2ResultListener<E,F> Default tuple2 result listener that implements the (obsolete) methods - resultAvailable - intermediateResultAvailable - finished
- 
- 
Constructor SummaryConstructors Constructor Description DefaultTuple2ResultListener()
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description voidfinished()Declare that the future is finished.voidintermediateResultAvailable(TupleResult result)Called when an intermediate result is available.voidresultAvailable(java.util.Collection<TupleResult> result)Called when the result is available.- 
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.ITuple2ResultListenerfirstResultAvailable, secondResultAvailable
 
- 
 
- 
- 
- 
Method Detail- 
resultAvailablepublic void resultAvailable(java.util.Collection<TupleResult> result) Called when the result is available. This method is only called for non-intermediate futures, i.e. when this method is called it is guaranteed that the intermediateResultAvailable method has not been called.- Specified by:
- resultAvailablein interface- IFunctionalResultListener<E>
- Parameters:
- result- The final result.
 
 - 
intermediateResultAvailablepublic void intermediateResultAvailable(TupleResult 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>
 
 
- 
 
-