Class ExecutionCompletedEvent<R>

  • Type Parameters:
    R - result type

    public class ExecutionCompletedEvent<R>
    extends ExecutionEvent
    Indicates an execution was completed or cancelled.
    • Field Detail

      • result

        private final R result
      • exception

        private final java.lang.Throwable exception
    • Constructor Detail

      • ExecutionCompletedEvent

        public ExecutionCompletedEvent​(R result,
                                       java.lang.Throwable exception,
                                       ExecutionContext<R> context)
    • Method Detail

      • getException

        public java.lang.Throwable getException()
        Returns the failure that preceded the event, else null if there was none.
      • getResult

        public R getResult()
        Returns the result that preceded the event, else null if there was none.
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object