Class ExecutionAttemptedEvent<R>

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

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

    • result

      private final R result
    • exception

      private final Throwable exception
  • Constructor Details

  • Method Details

    • getLastException

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