public class RemoteDelegationResultListener<E> extends java.lang.Object implements IRemoteResultListener<E>
Modifier and Type | Field and Description |
---|---|
protected Future<E> |
future
The future to which calls are delegated.
|
Constructor and Description |
---|
RemoteDelegationResultListener(Future<E> future)
Create a new listener.
|
Modifier and Type | Method and Description |
---|---|
void |
customResultAvailable(E result)
Called when the result is available.
|
void |
exceptionOccurred(java.lang.Exception exception)
Called when an exception occurred.
|
void |
resultAvailable(E result)
Called when the result is available.
|
public final void resultAvailable(E result)
resultAvailable
in interface IFunctionalResultListener<E>
result
- The result.public void customResultAvailable(E result)
result
- The result.public void exceptionOccurred(java.lang.Exception exception)
exceptionOccurred
in interface IFunctionalExceptionListener
exception
- The exception.