Class ExecutionAttemptedEvent<R>

  • Type Parameters:
    R - result type

    public class ExecutionAttemptedEvent<R>
    extends ExecutionEvent
    Indicates an execution was attempted.
    • Field Detail

      • result

        private final R result
      • exception

        private final java.lang.Throwable exception
    • Constructor Detail

      • ExecutionAttemptedEvent

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

      • getLastException

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

        public R getLastResult()
        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