Module jdk.net
Package jdk.net

Enum SocketFlow.Status

All Implemented Interfaces:
Serializable, Comparable<SocketFlow.Status>, Constable
Enclosing class:
SocketFlow

public static enum SocketFlow.Status
extends Enum<SocketFlow.Status>
Enumeration of the return values from the SO_FLOW_SLA socket option. Both setting and getting the option return one of these statuses, which reflect the state of socket's flow.
Since:
1.8
  • Enum Constant Details

  • Method Details

    • values

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

      public static SocketFlow.Status valueOf​(String name)
      Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified name
      NullPointerException - if the argument is null