Retry Classe

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

public final class Retry

Effectue une nouvelle tentative d’appel pour un certain nombre de fois configurable avec interruption.

Résumé de la méthode

Modificateur et type Méthode et description
static java.util.concurrent.CompletableFuture<TResult> <TResult>run(Supplier<CompletableFuture<TResult>> task, BiFunction<RuntimeException,Integer,RetryParams> retryExceptionHandler)

Exécute une tâche avec nouvelle tentative.

Méthodes héritées 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

Détails de la méthode

<TResult>run

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

Exécute une tâche avec nouvelle tentative.

Paramètres:

task - Tâche à exécuter.
retryExceptionHandler - Appelé lorsqu’une exception se produit.

Retours:

CompletableFuture terminé lorsque « tâche » retourne correctement.

S’applique à