Class ExecutionCompletedEvent<R>

java.lang.Object
dev.failsafe.event.ExecutionEvent
dev.failsafe.event.ExecutionCompletedEvent<R>
Type Parameters:
R - result type

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

    • result

      private final R result
    • exception

      private final Throwable exception
  • Constructor Details

  • Method Details

    • getException

      public 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 String toString()
      Overrides:
      toString in class Object