RetryParams Clase
- java.
lang. Object - com.
microsoft. bot. connector. authentication. RetryParams
- com.
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 intentar |
Resumen del método
| Modificador y tipo | Método y descripción |
|---|---|
|
static
Retry |
defaultBackOff(int retryCount)
Asistente para crear un |
| 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
Retry |
stopRetrying()
El asistente para crear un reintento |
Métodos heredados de java.lang.Object
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:
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:
Devoluciones:
getRetryAfter
public long getRetryAfter()
Retraso de reintento.
Devoluciones:
getShouldRetry
public boolean getShouldRetry()
Indica si debe producirse un reintento.
Devoluciones:
setRetryAfter
public void setRetryAfter(long withRetryAfter)
Establece el retraso de reintento.
Parámetros:
setShouldRetry
public void setShouldRetry(boolean withShouldRetry)
Establece si se debe realizar un reintento.
Parámetros:
stopRetrying
public static RetryParams stopRetrying()
Asistente para crear un elemento RetryParams con un valor shouldRetry de false.
Devoluciones: