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 SummaryConstructors Constructor Description RemoteDelegationResultListener(Future<E> future)Create a new listener.
 - 
Method SummaryAll 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- 
resultAvailablepublic final void resultAvailable(E result) Called when the result is available.- Specified by:
- resultAvailablein interface- IFunctionalResultListener<E>
- Parameters:
- result- The result.
 
 - 
customResultAvailablepublic void customResultAvailable(E result) Called when the result is available.- Parameters:
- result- The result.
 
 - 
exceptionOccurredpublic void exceptionOccurred(java.lang.Exception exception) Called when an exception occurred.- Specified by:
- exceptionOccurredin interface- IFunctionalExceptionListener
- Parameters:
- exception- The exception.
 
 
- 
 
-