RetryParams Classe
- java.
lang. Object - com.
microsoft. bot. connector. authentication. RetryParams
- com.
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) |
Riprovare |
Riepilogo dei metodi
| Modificatore e tipo | Metodo e descrizione |
|---|---|
|
static
Retry |
defaultBackOff(int retryCount)
Helper per creare un |
| 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
Retry |
stopRetrying()
Helper per creare un |
Metodi ereditati da java.lang.Object
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:
Dettagli metodo
defaultBackOff
public static RetryParams defaultBackOff(int retryCount)
Helper per creare un retryParams con il tempo di backoff predefinito.
Parametri:
Restituisce:
getRetryAfter
public long getRetryAfter()
Ritardo tentativi.
Restituisce:
getShouldRetry
public boolean getShouldRetry()
Indica se deve verificarsi un nuovo tentativo.
Restituisce:
setRetryAfter
public void setRetryAfter(long withRetryAfter)
Imposta il ritardo di ripetizione dei tentativi.
Parametri:
setShouldRetry
public void setShouldRetry(boolean withShouldRetry)
Imposta un valore che indica se deve verificarsi un nuovo tentativo.
Parametri:
stopRetrying
public static RetryParams stopRetrying()
Helper per creare un retryParams con un valore shouldRetry di false.
Restituisce: