Package com.norconex.commons.lang.exec

# Interface IRetriable<T>

Type Parameters:
  `T` - type of optional return value

All Superinterfaces:
  `Retriable<T>`

Functional Interface:
  This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@Deprecated(since="3.0.0") @FunctionalInterface public interface IRetriable<T> extends Retriable<T>
Deprecated.
Use `Retriable` instead
Upon failure, the `run` method will get re-executed by a `Retrier` until successful or fails according to the `Retrier` conditions.

Since:
  1.13.0
See Also:
  - `Retrier`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `T`
  `execute()`
  Deprecated.
  Code to be executed until successful (no exception thrown).

- ## Method Details

  - ### execute

    T execute() throws Exception
    Deprecated.
    Code to be executed until successful (no exception thrown).
    Specified by:
      `execute` in interface `Retriable<T>`
    Returns:
      optional return value
    Throws:
      `Exception` - any exception