public class MultiServiceInvocationHandler.IntermediateMethodResultListener<T> extends java.lang.Object implements IIntermediateResultListener<T>
Modifier and Type | Field and Description |
---|---|
protected IMultiplexDistributor |
muldis
The call distributor.
|
Constructor and Description |
---|
IntermediateMethodResultListener(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(Future fut, java.lang.reflect.Method method, java.lang.Object[] args, java.lang.reflect.Method muxmethod)
public void intermediateResultAvailable(T result)
intermediateResultAvailable
in interface IIntermediateResultListener<T>
result
- The result.public void finished()
finished
in interface IIntermediateResultListener<T>
public void resultAvailable(java.util.Collection<T> result)
resultAvailable
in interface IFunctionalResultListener<java.util.Collection<T>>
resultAvailable
in interface IIntermediateResultListener<T>
result
- The result.public void exceptionOccurred(java.lang.Exception exception)
exceptionOccurred
in interface IFunctionalExceptionListener
exception
- The exception.