Nakama .NET Client SDK 3.8.0
Nakama .NET Client SDK
Loading...
Searching...
No Matches
Nakama.RetryConfiguration Class Reference

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.
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ RetryConfiguration() [1/3]

Nakama.RetryConfiguration.RetryConfiguration ( int  baseDelayMs,
int  maxRetries 
)
inline

Create a new retry configuration.

Parameters
baseDelayMsThe base delay (milliseconds) used to calculate the time before making another request attempt.
maxRetriesThe 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
baseDelayMsThe base delay (milliseconds) used to calculate the time before making another request attempt.
maxRetriesThe maximum number of attempts to make before cancelling the request task.
listenerA 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
baseDelayMsThe base delay (milliseconds) used to calculate the time before making another request attempt.
maxRetriesThe maximum number of attempts to make before cancelling the request task.
listenerA callback that is invoked before a new retry attempt is made.
jitter/// The jitter algorithm used to apply randomness to the retry delay.

Property Documentation

◆ 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: