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.

    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • 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.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

    • 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`.