Package fr.gouv.vitam.common.retryable

# Class RetryableOnResult<T,E extends Exception>

java.lang.Object
fr.gouv.vitam.common.retryable.RetryableOnResult<T,E>

All Implemented Interfaces:
  `Retryable<T,E>`

public class RetryableOnResult<T,E extends Exception> extends Object implements Retryable<T,E>

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `RetryableOnResult(RetryableParameters param, Predicate<T> retryOn)`
  `RetryableOnResult(RetryableParameters param, Predicate<T> retryOn, Consumer<T> onResult)`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `T`
  `exec(DelegateRetry<T,E> delegate)`
  `void`
  `execute(DelegateRetryVoid<E> delegate)`

  ### Methods inherited from class java.lang.Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

  ### Methods inherited from interface fr.gouv.vitam.common.retryable.Retryable

  `doSleep, sleep, sleep`

- ## Constructor Details

  - ### RetryableOnResult

    public RetryableOnResult(RetryableParameters param, Predicate<T> retryOn, Consumer<T> onResult)

  - ### RetryableOnResult

    public RetryableOnResult(RetryableParameters param, Predicate<T> retryOn)

- ## Method Details

  - ### exec

    public T exec(DelegateRetry<T,E> delegate) throws E
    Specified by:
      `exec` in interface `Retryable<T,E extends Exception>`
    Throws:
      `E`

  - ### execute

    public void execute(DelegateRetryVoid<E> delegate) throws E
    Specified by:
      `execute` in interface `Retryable<T,E extends Exception>`
    Throws:
      `E`