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 TypeMethodDescriptionvoid
customResultAvailable
(E result) Called when the result is available.void
exceptionOccurred
(Exception exception) Called when an exception occurred.final void
resultAvailable
(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:
resultAvailable
in 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:
exceptionOccurred
in interfaceIResultListener<E>
- Parameters:
exception
- The exception.
-