Interface RetryableTask

All Superinterfaces:
Retryable, Task

public interface RetryableTask extends Task, Retryable
A Task that will be retried until it succeeds or the timeout is reached. Exceptions thrown will be ignored by default unless they match the acknowledged exception predicate.
  • Method Details

    • getAcknowledgedExceptions

      default Set<Class<? extends Exception>> getAcknowledgedExceptions()
      Returns:
      the Set of Exception classes that won't be ignored when thrown in a retry
    • isAcknowledgedException

      default boolean isAcknowledgedException(Exception exception)
      Parameters:
      exception - the Exception that made the retry necessary
      Returns:
      the predicate that decides weather the exception won't be ignored when thrown in a retry