Retry Clase

  • java.lang.Object
    • com.microsoft.bot.connector.authentication.Retry

public final class Retry

Reintentará una llamada para un número configurable de veces con retroceso.

Resumen del método

Modificador y tipo Método y descripción
static java.util.concurrent.CompletableFuture<TResult> <TResult>run(Supplier<CompletableFuture<TResult>> task, BiFunction<RuntimeException,Integer,RetryParams> retryExceptionHandler)

Ejecuta una tarea con reintento.

Métodos heredados de java.lang.Object

java.lang.Object.clone java.lang.Object.equals java.lang.Object.finalize java.lang.Object.getClass java.lang.Object.hashCode java.lang.Object.notify java.lang.Object.notifyAll java.lang.Object.toString java.lang.Object.wait java.lang.Object.wait java.lang.Object.wait

Detalles del método

<TResult>run

public static CompletableFuture run(Supplier> task, BiFunction retryExceptionHandler)

Ejecuta una tarea con reintento.

Parámetros:

task - Tarea que se va a ejecutar.
retryExceptionHandler - Se llama cuando se produce una excepción.

Devoluciones:

CompletableFuture que se completa cuando "task" se devuelve correctamente.

Se aplica a