Class NetworkConfiguration.Builder
-
- All Implemented Interfaces:
public class NetworkConfiguration.BuilderThe builder for the retry configuration.
-
-
Constructor Summary
Constructors Constructor Description NetworkConfiguration.Builder()
-
Method Summary
Modifier and Type Method Description NetworkConfiguration.BuildermaxRetries(int maxRetries)Sets the maximum amount of retries before the player throws a fatal error. NetworkConfiguration.BuilderminimumBackOff(long minimumBackOff)Sets the initial delay in milliseconds before a retry request occurs. NetworkConfiguration.BuildermaximumBackOff(long maximumBackOff)Sets the maximum amount of delay in milliseconds between retry requests. NetworkConfigurationbuild()Builds the retry configuration. -
-
Method Detail
-
maxRetries
NetworkConfiguration.Builder maxRetries(int maxRetries)
Sets the maximum amount of retries before the player throws a fatal error.
- Parameters:
maxRetries- The maximum amount of retries.
-
minimumBackOff
NetworkConfiguration.Builder minimumBackOff(long minimumBackOff)
Sets the initial delay in milliseconds before a retry request occurs. Exponential backoff will be applied on this value.
- Parameters:
minimumBackOff- The initial delay in milliseconds before a retry request occurs.
-
maximumBackOff
NetworkConfiguration.Builder maximumBackOff(long maximumBackOff)
Sets the maximum amount of delay in milliseconds between retry requests.
- Parameters:
maximumBackOff- The maximum amount of delay in milliseconds between retry requests.
-
build
NetworkConfiguration build()
Builds the retry configuration.
-
-
-
-