Package jadex.future

Class RemoteDelegationResultListener<E>

java.lang.Object
jadex.future.RemoteDelegationResultListener<E>
All Implemented Interfaces:
jadex.common.IRemotable, IRemoteResultListener<E>, IResultListener<E>

public class RemoteDelegationResultListener<E> extends Object implements IRemoteResultListener<E>
Result listener that delegates calls to a future and can be called from remote.
  • Field Details

    • future

      protected Future<E> future
      The future to which calls are delegated.
  • Constructor Details

    • RemoteDelegationResultListener

      public RemoteDelegationResultListener(Future<E> future)
      Create a new listener.
  • Method Details

    • resultAvailable

      public final void resultAvailable(E result)
      Called when the result is available.
      Specified by:
      resultAvailable in interface IResultListener<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(Exception exception)
      Called when an exception occurred.
      Specified by:
      exceptionOccurred in interface IResultListener<E>
      Parameters:
      exception - The exception.