Package jadex.commons.future
Class RemoteDelegationResultListener<E>
- java.lang.Object
-
- jadex.commons.future.RemoteDelegationResultListener<E>
-
- All Implemented Interfaces:
IFunctionalExceptionListener
,IFunctionalResultListener<E>
,IRemoteResultListener<E>
,IResultListener<E>
,IRemotable
public class RemoteDelegationResultListener<E> extends java.lang.Object implements IRemoteResultListener<E>
Result listener that delegates calls to a future and can be called from remote.
-
-
Constructor Summary
Constructors Constructor Description RemoteDelegationResultListener(Future<E> future)
Create a new listener.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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.
-
-
-
Method Detail
-
resultAvailable
public final void resultAvailable(E result)
Called when the result is available.- Specified by:
resultAvailable
in interfaceIFunctionalResultListener<E>
- Parameters:
result
- The result.
-
customResultAvailable
public void customResultAvailable(E result)
Called when the result is available.- Parameters:
result
- The result.
-
exceptionOccurred
public void exceptionOccurred(java.lang.Exception exception)
Called when an exception occurred.- Specified by:
exceptionOccurred
in interfaceIFunctionalExceptionListener
- Parameters:
exception
- The exception.
-
-