Package jadex.commons.future
Class RemoteDelegationResultListener<E>
- java.lang.Object
-
- jadex.commons.future.RemoteDelegationResultListener<E>
-
- All Implemented Interfaces:
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 voidcustomResultAvailable(E result)Called when the result is available.voidexceptionOccurred(java.lang.Exception exception)Called when an exception occurred.voidresultAvailable(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:
resultAvailablein interfaceIResultListener<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:
exceptionOccurredin interfaceIResultListener<E>- Parameters:
exception- The exception.
-
-