Class MultiServiceInvocationHandler.IntermediateMethodResultListener<T>
- java.lang.Object
-
- jadex.bridge.service.component.multiinvoke.MultiServiceInvocationHandler.IntermediateMethodResultListener<T>
-
- All Implemented Interfaces:
jadex.commons.future.IIntermediateResultListener<T>
,jadex.commons.future.IResultListener<java.util.Collection<T>>
- Enclosing class:
- MultiServiceInvocationHandler
public class MultiServiceInvocationHandler.IntermediateMethodResultListener<T> extends java.lang.Object implements jadex.commons.future.IIntermediateResultListener<T>
Listener that invokes service methods and delegates the results.
-
-
Field Summary
Fields Modifier and Type Field Description protected IMultiplexDistributor
muldis
The call distributor.
-
Constructor Summary
Constructors Constructor 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.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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
maxResultCountAvailable(int max)
void
resultAvailable(java.util.Collection<T> result)
Called when services have been found.
-
-
-
Field Detail
-
muldis
protected IMultiplexDistributor muldis
The call distributor.
-
-
Method Detail
-
intermediateResultAvailable
public void intermediateResultAvailable(T result)
Called when a service has been found.- Specified by:
intermediateResultAvailable
in interfacejadex.commons.future.IIntermediateResultListener<T>
- Parameters:
result
- The result.
-
finished
public void finished()
Called when all services have been found.- Specified by:
finished
in interfacejadex.commons.future.IIntermediateResultListener<T>
-
resultAvailable
public void resultAvailable(java.util.Collection<T> result)
Called when services have been found.- Specified by:
resultAvailable
in interfacejadex.commons.future.IResultListener<T>
- Parameters:
result
- The result.
-
exceptionOccurred
public void exceptionOccurred(java.lang.Exception exception)
Called when an exception has occurred.- Specified by:
exceptionOccurred
in interfacejadex.commons.future.IResultListener<T>
- Parameters:
exception
- The exception.
-
maxResultCountAvailable
public void maxResultCountAvailable(int max)
- Specified by:
maxResultCountAvailable
in interfacejadex.commons.future.IIntermediateResultListener<T>
-
-