Class RemoteDelegationResultListener<E>

    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected Future<E> future
      The future to which calls are delegated.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void customResultAvailable​(E result)
      Called when the result is available.
      void exceptionOccurred​(java.lang.Exception exception)
      Called when an exception occurred.
      void resultAvailable​(E result)
      Called when the result is available.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • future

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

      • RemoteDelegationResultListener

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

      • resultAvailable

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