Class ReconnectBackoffOptions
Options for configuring the reconnection delay used by the sync client.
Namespace: Realms.Sync
Assembly: Realm.dll
Syntax
public class ReconnectBackoffOptions
Remarks
The sync client employs an exponential backoff delay strategy when reconnecting to the server. In order to not spam the network interface the sync client performs an increasing wait before reconnecting. The wait starts from ReconnectDelayInterval and multiplies by ReconnectDelayBackoffMultiplier until it reaches MaxReconnectDelayInterval.
Properties
| Edit this page View SourceDelayJitterDivisor
Gets or sets the jitter randomization factor to apply to the delay.
Declaration
public int DelayJitterDivisor { get; set; }
Property Value
Type | Description |
---|---|
int | The jitter randomization factor to apply to the delay. |
Remarks
The reconnection delay is subtracted by a value derived from this divisor so that if a lot of clients lose connection and reconnect at the same time the server won't be overwhelmed.
Defaults to 4.
MaxReconnectDelayInterval
Gets or sets the maximum amount of time to wait before a reconnection attempt.
Declaration
public TimeSpan MaxReconnectDelayInterval { get; set; }
Property Value
Type | Description |
---|---|
TimeSpan | The maximum amount of time to wait before a reconnection attempt. |
Remarks
Defaults to 5 minutes.
ReconnectDelayBackoffMultiplier
Gets or sets the multiplier to apply to the accumulated reconnection delay before a new reconection attempt.
Declaration
public int ReconnectDelayBackoffMultiplier { get; set; }
Property Value
Type | Description |
---|---|
int | The delay multiplier. |
Remarks
Defaults to 2.
ReconnectDelayInterval
Gets or sets the initial amount of time to wait before a reconnection attempt.
Declaration
public TimeSpan ReconnectDelayInterval { get; set; }
Property Value
Type | Description |
---|---|
TimeSpan | The initial amount of time to wait before a reconnection attempt. |
Remarks
Defaults to 1 second.