RetryParams Classe

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

public class RetryParams

Stato per Riprova.

Riepilogo dei campi

Modificatore e tipo Campo e descrizione
static final int MAX_RETRIES

Riepilogo dei costruttori

Costruttore Descrizione
RetryParams()

Opzioni di ripetizione dei tentativi predefinite.

RetryParams(long withRetryAfter)

RiprovareParametri con il ritardo specificato.

Riepilogo dei metodi

Modificatore e tipo Metodo e descrizione
static RetryParams defaultBackOff(int retryCount)

Helper per creare unparametri di ripetizione dei tentativi con il tempo di backoff predefinito.

long getRetryAfter()

Ritardo tentativi.

boolean getShouldRetry()

Indica se deve verificarsi un nuovo tentativo.

void setRetryAfter(long withRetryAfter)

Imposta il ritardo di ripetizione dei tentativi.

void setShouldRetry(boolean withShouldRetry)

Imposta un valore che indica se deve verificarsi un nuovo tentativo.

static RetryParams stopRetrying()

Helper per creare unparametri di ripetizione dei tentativi con unriprovare false.

Metodi ereditati da 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

Dettagli del campo

MAX_RETRIES

public static final int MAX_RETRIES

Dettagli costruttore

RetryParams

public RetryParams()

Opzioni di ripetizione dei tentativi predefinite.

RetryParams

public RetryParams(long withRetryAfter)

RetryParams con il ritardo specificato.

Parametri:

withRetryAfter - Ritardo in millisecondi.

Dettagli metodo

defaultBackOff

public static RetryParams defaultBackOff(int retryCount)

Helper per creare un retryParams con il tempo di backoff predefinito.

Parametri:

retryCount - Numero di tentativi.

Restituisce:

Oggetto RetryParams con il tempo di backoff corretto.

getRetryAfter

public long getRetryAfter()

Ritardo tentativi.

Restituisce:

Ritardo in millisecondi.

getShouldRetry

public boolean getShouldRetry()

Indica se deve verificarsi un nuovo tentativo.

Restituisce:

True se deve verificarsi un nuovo tentativo.

setRetryAfter

public void setRetryAfter(long withRetryAfter)

Imposta il ritardo di ripetizione dei tentativi.

Parametri:

withRetryAfter - Ritardo in millisecondi.

setShouldRetry

public void setShouldRetry(boolean withShouldRetry)

Imposta un valore che indica se deve verificarsi un nuovo tentativo.

Parametri:

withShouldRetry - True per un nuovo tentativo.

stopRetrying

public static RetryParams stopRetrying()

Helper per creare un retryParams con un valore shouldRetry di false.

Restituisce:

RetryParams che restituisce false per getShouldRetry().

Si applica a