Class ExceptionDelegationResultListener<E,​T>

    • Field Detail

      • future

        protected Future<T> future
        The future to which calls are delegated.
      • undone

        protected boolean undone
        Flag if undone methods should be used.
    • Constructor Detail

      • ExceptionDelegationResultListener

        public ExceptionDelegationResultListener​(Future<T> future)
        Create a new listener.
        Parameters:
        future - The delegation target.
      • ExceptionDelegationResultListener

        public ExceptionDelegationResultListener​(Future<T> future,
                                                 boolean undone)
        Create a new listener.
        Parameters:
        future - The delegation target.
        undone - use undone methods.
    • Method Detail

      • 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 abstract void customResultAvailable​(E result)
                                            throws java.lang.Exception
        Called when the result is available.
        Parameters:
        result - The result.
        Throws:
        java.lang.Exception
      • exceptionOccurred

        public void exceptionOccurred​(java.lang.Exception exception)
        Called when an exception occurred.
        Specified by:
        exceptionOccurred in interface IResultListener<E>
        Parameters:
        exception - The exception.
      • exceptionOccurredIfUndone

        public void exceptionOccurredIfUndone​(java.lang.Exception exception)
        Called when an exception occurred.
        Specified by:
        exceptionOccurredIfUndone in interface IUndoneResultListener<E>
        Parameters:
        exception - The exception.
      • isUndone

        public boolean isUndone()
        Get the undone.
        Returns:
        The undone.