Enum Class HighPrioritySearchTimeout

java.lang.Object
java.lang.Enum<HighPrioritySearchTimeout>
com.dsi.ant.message.HighPrioritySearchTimeout
All Implemented Interfaces:
Serializable, Comparable<HighPrioritySearchTimeout>, Constable

public enum HighPrioritySearchTimeout extends Enum<HighPrioritySearchTimeout>
The duration the slave channel will search for a master channel, in high priority mode.
Since:
4.0
  • Enum Constant Details

  • Field Details

  • Method Details

    • values

      public static HighPrioritySearchTimeout[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static HighPrioritySearchTimeout valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • getRawValue

      public int getRawValue()
      Returns the raw value of this HighPrioritySearchTimeout. Applications should used the enumeration values directly.
      Since:
      4.0
    • create

      public static HighPrioritySearchTimeout create(int milliseconds)
      Will round millisecond value up to nearest timeout value in 2.5 second increments.
      Parameters:
      milliseconds - How long a search is required to run for, in millisecond units.
      Returns:
      A search timeout value closest to, but at least the amount of, time requested not exceeding the maximum.
      Since:
      4.0
    • convertToMilliseconds

      public int convertToMilliseconds()
      Get the time value of this search timeout.
      Returns:
      timeout in milliseconds
      Since:
      4.0