Class NetworkConfiguration
-
- All Implemented Interfaces:
public class NetworkConfigurationNetworkConfiguration is an object containing values used for the player's retry mechanisms.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public classNetworkConfiguration.BuilderThe builder for the retry configuration.
-
Field Summary
Fields Modifier and Type Field Description public final intmaxRetriespublic final longminimumBackOffpublic final longmaximumBackOff
-
Method Summary
Modifier and Type Method Description intgetMaxRetries()The maximum amount of retries before the player throws a fatal error. longgetMinimumBackOff()Sets the initial delay in milliseconds before a retry request occurs. longgetMaximumBackOff()Sets the maximum amount of delay in milliseconds between retry requests. -
-
Method Detail
-
getMaxRetries
int getMaxRetries()
The maximum amount of retries before the player throws a fatal error.
Default: `Integer.MAX_VALUE`.
-
getMinimumBackOff
long getMinimumBackOff()
Sets the initial delay in milliseconds before a retry request occurs. Exponential backoff will be applied on this value.
Default: `200`.
-
getMaximumBackOff
long getMaximumBackOff()
Sets the maximum amount of delay in milliseconds between retry requests.
Default: `30000`.
-
-
-
-