Package jadex.future
Class RemoteDelegationResultListener<E>
java.lang.Object
jadex.future.RemoteDelegationResultListener<E>
- All Implemented Interfaces:
jadex.common.IRemotable,IRemoteResultListener<E>,IResultListener<E>
Result listener that delegates calls to a future
and can be called from remote.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcustomResultAvailable(E result) Called when the result is available.voidexceptionOccurred(Exception exception) Called when an exception occurred.final voidresultAvailable(E result) Called when the result is available.
-
Field Details
-
future
The future to which calls are delegated.
-
-
Constructor Details
-
RemoteDelegationResultListener
Create a new listener.
-
-
Method Details
-
resultAvailable
Called when the result is available.- Specified by:
resultAvailablein interfaceIResultListener<E>- Parameters:
result- The result.
-
customResultAvailable
Called when the result is available.- Parameters:
result- The result.
-
exceptionOccurred
Called when an exception occurred.- Specified by:
exceptionOccurredin interfaceIResultListener<E>- Parameters:
exception- The exception.
-