Class NetworkConfiguration
-
- All Implemented Interfaces:
public class NetworkConfiguration
NetworkConfiguration is an object containing values used for the player's retry mechanisms.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public class
NetworkConfiguration.Builder
The builder for the retry configuration.
-
Field Summary
Fields Modifier and Type Field Description public final int
maxRetries
public final long
minimumBackOff
public final long
maximumBackOff
-
Method Summary
Modifier and Type Method Description int
getMaxRetries()
The maximum amount of retries before the player throws a fatal error. long
getMinimumBackOff()
Sets the initial delay in milliseconds before a retry request occurs. long
getMaximumBackOff()
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`.
-
-
-
-