Nakama .NET Client SDK 3.8.0
Nakama .NET Client SDK
|
A configuration for controlling retriable requests. More...
Public Member Functions | |
RetryConfiguration (int baseDelayMs, int maxRetries) | |
Create a new retry configuration. | |
RetryConfiguration (int baseDelayMs, int maxRetries, RetryListener listener) | |
Create a new retry configuration. | |
RetryConfiguration (int baseDelayMs, int maxRetries, RetryListener listener, Jitter jitter) | |
Create a new retry configuration. | |
Properties | |
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.
|
inline |
Create a new retry configuration.
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. |
|
inline |
Create a new retry configuration.
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. |
|
inline |
Create a new retry configuration.
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. |
|
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.
|
get |
The jitter algorithm used to apply randomness to the retry delay. Defaults to RetryJitter.FullJitter
|
get |
The maximum number of attempts to make before cancelling the request task.
|
get |
A callback that is invoked before a new retry attempt is made.