public class MultiServiceInvocationHandler.IntermediateMethodResultListener<T>
extends java.lang.Object
implements jadex.commons.future.IIntermediateResultListener<T>
Modifier and Type | Field and Description |
---|---|
protected IMultiplexDistributor |
muldis
The call distributor.
|
Constructor and Description |
---|
IntermediateMethodResultListener(jadex.commons.future.Future fut,
java.lang.reflect.Method method,
java.lang.Object[] args,
java.lang.reflect.Method muxmethod)
Create a new listener.
|
Modifier and Type | Method and Description |
---|---|
void |
exceptionOccurred(java.lang.Exception exception)
Called when an exception has occurred.
|
void |
finished()
Called when all services have been found.
|
void |
intermediateResultAvailable(T result)
Called when a service has been found.
|
void |
resultAvailable(java.util.Collection<T> result)
Called when services have been found.
|
protected IMultiplexDistributor muldis
public IntermediateMethodResultListener(jadex.commons.future.Future fut, java.lang.reflect.Method method, java.lang.Object[] args, java.lang.reflect.Method muxmethod)
public void intermediateResultAvailable(T result)
public void finished()
finished
in interface jadex.commons.future.IFunctionalIntermediateFinishedListener
finished
in interface jadex.commons.future.IIntermediateResultListener<T>
public void resultAvailable(java.util.Collection<T> result)
public void exceptionOccurred(java.lang.Exception exception)
exceptionOccurred
in interface jadex.commons.future.IFunctionalExceptionListener
exception
- The exception.