public class MultiServiceInvocationHandler.IntermediateMethodResultListener<T> extends Object implements IIntermediateResultListener<T>
Constructor and Description |
---|
IntermediateMethodResultListener(Future fut,
Method method,
Object[] args,
Method muxmethod)
Create a new listener.
|
Modifier and Type | Method and Description |
---|---|
void |
exceptionOccurred(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(Collection<T> result)
Called when services have been found.
|
public void intermediateResultAvailable(T result)
intermediateResultAvailable
in interface IIntermediateResultListener<T>
result
- The result.public void finished()
finished
in interface IIntermediateResultListener<T>
public void resultAvailable(Collection<T> result)
resultAvailable
in interface IFunctionalResultListener<Collection<T>>
resultAvailable
in interface IIntermediateResultListener<T>
result
- The result.public void exceptionOccurred(Exception exception)
exceptionOccurred
in interface IFunctionalExceptionListener
exception
- The exception.Copyright © 2015. All Rights Reserved.