RetryParams Classe

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

public class RetryParams

État de nouvelle tentative.

Récapitulatif du champ

Modificateur et type Champ et description
static final int MAX_RETRIES

Récapitulatif du constructeur

Constructeur Description
RetryParams()

Options de nouvelle tentative par défaut.

RetryParams(long withRetryAfter)

Réessayezparams avec le délai spécifié.

Résumé de la méthode

Modificateur et type Méthode et description
static RetryParams defaultBackOff(int retryCount)

Assistance pour créer une nouvelle tentativeparams avec le temps d’interruption par défaut.

long getRetryAfter()

Délai de nouvelle tentative.

boolean getShouldRetry()

Indique si une nouvelle tentative doit se produire.

void setRetryAfter(long withRetryAfter)

Définit le délai de nouvelle tentative.

void setShouldRetry(boolean withShouldRetry)

Définit si une nouvelle tentative doit se produire.

static RetryParams stopRetrying()

Helper pour créer une nouvelle tentativeparams avec un doitNouvelle tentative de false.

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 du champ

MAX_RETRIES

public static final int MAX_RETRIES

Détails du constructeur

RetryParams

public RetryParams()

Options de nouvelle tentative par défaut.

RetryParams

public RetryParams(long withRetryAfter)

RetryParams avec le délai spécifié.

Paramètres:

withRetryAfter - Retard en millisecondes.

Détails de la méthode

defaultBackOff

public static RetryParams defaultBackOff(int retryCount)

Helper pour créer un RetryParams avec le temps d’interruption par défaut.

Paramètres:

retryCount - Le nombre de nouvelles tentatives s’est produite.

Retours:

Objet RetryParams avec le temps d’interruption approprié.

getRetryAfter

public long getRetryAfter()

Délai de nouvelle tentative.

Retours:

Retard en millisecondes.

getShouldRetry

public boolean getShouldRetry()

Indique si une nouvelle tentative doit se produire.

Retours:

True si une nouvelle tentative doit se produire.

setRetryAfter

public void setRetryAfter(long withRetryAfter)

Définit le délai de nouvelle tentative.

Paramètres:

withRetryAfter - Retard en millisecondes.

setShouldRetry

public void setShouldRetry(boolean withShouldRetry)

Définit si une nouvelle tentative doit se produire.

Paramètres:

withShouldRetry - True pour une nouvelle tentative.

stopRetrying

public static RetryParams stopRetrying()

Helper pour créer un RetryParams avec une valeur shouldRetry de false.

Retours:

RetryParams qui retourne false pour getShouldRetry().

S’applique à