RetryParams Clase

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

public class RetryParams

Estado de Reintento.

Resumen del campo

Modificador y tipo Campo y descripción
static final int MAX_RETRIES

Resumen del constructor

Constructor Description
RetryParams()

Opciones de reintento predeterminadas.

RetryParams(long withRetryAfter)

Vuelva a intentarparámetros con el retraso especificado.

Resumen del método

Modificador y tipo Método y descripción
static RetryParams defaultBackOff(int retryCount)

Asistente para crear unparámetros de reintento con el tiempo de retroceso predeterminado.

long getRetryAfter()

Retraso de reintento.

boolean getShouldRetry()

Indica si debe producirse un reintento.

void setRetryAfter(long withRetryAfter)

Establece el retraso de reintento.

void setShouldRetry(boolean withShouldRetry)

Establece si se debe realizar un reintento.

static RetryParams stopRetrying()

El asistente para crear un reintentoParámetros con un debeReintento de false.

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 campo

MAX_RETRIES

public static final int MAX_RETRIES

Detalles del constructor

RetryParams

public RetryParams()

Opciones de reintento predeterminadas.

RetryParams

public RetryParams(long withRetryAfter)

RetryParams con el retraso especificado.

Parámetros:

withRetryAfter - Retraso en milisegundos.

Detalles del método

defaultBackOff

public static RetryParams defaultBackOff(int retryCount)

Asistente para crear un elemento RetryParams con el tiempo de retroceso predeterminado.

Parámetros:

retryCount - Número de veces que se ha producido un reintento.

Devoluciones:

Un objeto RetryParams con el tiempo de retroceso adecuado.

getRetryAfter

public long getRetryAfter()

Retraso de reintento.

Devoluciones:

Retraso en milisegundos.

getShouldRetry

public boolean getShouldRetry()

Indica si debe producirse un reintento.

Devoluciones:

True si se debe producir un reintento.

setRetryAfter

public void setRetryAfter(long withRetryAfter)

Establece el retraso de reintento.

Parámetros:

withRetryAfter - Retraso en milisegundos.

setShouldRetry

public void setShouldRetry(boolean withShouldRetry)

Establece si se debe realizar un reintento.

Parámetros:

withShouldRetry - True para un reintento.

stopRetrying

public static RetryParams stopRetrying()

Asistente para crear un elemento RetryParams con un valor shouldRetry de false.

Devoluciones:

RetryParams que devuelve false para getShouldRetry().

Se aplica a