Interface TcpTimeouts.Factory

Enclosing interface:
TcpTimeouts

public static interface TcpTimeouts.Factory
Factory used to create TcpTimeouts instances.
  • Method Summary

    Modifier and Type
    Method
    Description
    create(int initial_time_to_wait, int max_time_to_wait, int backoff_value)
    Create TcpTimeouts assuming that max_single_wait is unbounded.
    create(int initial_time_to_wait, int max_time_to_wait, int backoff_value, int max_single_wait)
    Create TcpTimeouts using all configuration parameters, including a bound on the maximum single wait time.
    create(String args)
    Create TcpTimeouts from a configuration string.
  • Method Details

    • create

      TcpTimeouts create(int initial_time_to_wait, int max_time_to_wait, int backoff_value)
      Create TcpTimeouts assuming that max_single_wait is unbounded.
      Parameters:
      initial_time_to_wait - initial time in milliseconds
      max_time_to_wait - max time in milliseconds
      backoff_value - percentage multiplier
      Returns:
      Constructed TcpTimeout
    • create

      TcpTimeouts create(int initial_time_to_wait, int max_time_to_wait, int backoff_value, int max_single_wait)
      Create TcpTimeouts using all configuration parameters, including a bound on the maximum single wait time.
      Parameters:
      initial_time_to_wait - initial time in milliseconds
      max_time_to_wait - max time in milliseconds
      backoff_value - percentage multiplier
      max_single_wait - max single time in milliseconds
      Returns:
      Constructed TcpTimeout
    • create

      TcpTimeouts create(String args)
      Create TcpTimeouts from a configuration string. args must be a : separated string, with 3 or 4 args, all of which are positive decimal integers. The integers are in the same order as the arguments to the other create methods.
      Parameters:
      args - a colon separated string
      Returns:
      Constructed TcpTimeout