A configuration for controlling retriable requests.
More...
|
int | BaseDelayMs [get] |
| The base delay (milliseconds) used to calculate the time before making another request attempt. This base will be raised to N, where N is the number of retry attempts.
|
|
Jitter | Jitter [get] |
| The jitter algorithm used to apply randomness to the retry delay. Defaults to RetryJitter.FullJitter
|
|
int | MaxAttempts [get] |
| The maximum number of attempts to make before cancelling the request task.
|
|
RetryListener | RetryListener [get] |
| A callback that is invoked before a new retry attempt is made.
|
|
A configuration for controlling retriable requests.
Retry configurations can be assigned to the IClient on a request-by-request basis via the see <cref="RequestConfiguration"/> parameter.
Retry configurations can also be assigned on a global basis using IClient.GlobalRetryConfiguration. Configurations passed via the see <cref="RequestConfiguraiton"/> parameter take precedence over the global configuration.
◆ RetryConfiguration() [1/3]
Nakama.RetryConfiguration.RetryConfiguration |
( |
int | baseDelayMs, |
|
|
int | maxRetries ) |
|
inline |
Create a new retry configuration.
- Parameters
-
baseDelayMs | The base delay (milliseconds) used to calculate the time before making another request attempt. |
maxRetries | The maximum number of attempts to make before cancelling the request task. |
◆ RetryConfiguration() [2/3]
Nakama.RetryConfiguration.RetryConfiguration |
( |
int | baseDelayMs, |
|
|
int | maxRetries, |
|
|
RetryListener | listener ) |
|
inline |
Create a new retry configuration.
- Parameters
-
baseDelayMs | The base delay (milliseconds) used to calculate the time before making another request attempt. |
maxRetries | The maximum number of attempts to make before cancelling the request task. |
listener | A callback that is invoked before a new retry attempt is made. |
◆ RetryConfiguration() [3/3]
Nakama.RetryConfiguration.RetryConfiguration |
( |
int | baseDelayMs, |
|
|
int | maxRetries, |
|
|
RetryListener | listener, |
|
|
Jitter | jitter ) |
|
inline |
Create a new retry configuration.
- Parameters
-
baseDelayMs | The base delay (milliseconds) used to calculate the time before making another request attempt. |
maxRetries | The maximum number of attempts to make before cancelling the request task. |
listener | A callback that is invoked before a new retry attempt is made. |
jitter | The jitter algorithm used to apply randomness to the retry delay. |
◆ BaseDelayMs
int Nakama.RetryConfiguration.BaseDelayMs |
|
get |
The base delay (milliseconds) used to calculate the time before making another request attempt. This base will be raised to N, where N is the number of retry attempts.
◆ Jitter
Jitter Nakama.RetryConfiguration.Jitter |
|
get |
The jitter algorithm used to apply randomness to the retry delay. Defaults to RetryJitter.FullJitter
◆ MaxAttempts
int Nakama.RetryConfiguration.MaxAttempts |
|
get |
The maximum number of attempts to make before cancelling the request task.
◆ RetryListener
RetryListener Nakama.RetryConfiguration.RetryListener |
|
get |
A callback that is invoked before a new retry attempt is made.
The documentation for this class was generated from the following file: