- java.lang.Object
- 
- java.lang.Enum<SocketFlow.Status>
- 
- jdk.net.SocketFlow.Status
 
 
- 
- All Implemented Interfaces:
- Serializable,- Comparable<SocketFlow.Status>
 - 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 SummaryEnum Constants Enum Constant Description ALREADY_CREATEDA flow already exists with identical attributes.IN_PROGRESSA flow is being created.NO_PERMISSIONCaller has no permission to create flow.NO_STATUSSet or get socket option has not been called yet.NOT_CONNECTEDFlow can not be created because socket is not connected.NOT_SUPPORTEDFlow creation not supported for this socket.OKFlow successfully created.OTHERSome other unspecified error.
 - 
Method SummaryAll Methods Static Methods Concrete Methods Modifier and Type Method Description static SocketFlow.StatusvalueOf(String name)Returns the enum constant of this type with the specified name.static SocketFlow.Status[]values()Returns an array containing the constants of this enum type, in the order they are declared.
 
- 
- 
- 
Enum Constant Detail- 
NO_STATUSpublic static final SocketFlow.Status NO_STATUS Set or get socket option has not been called yet. Status values can only be retrieved after calling set or get.
 - 
OKpublic static final SocketFlow.Status OK Flow successfully created.
 - 
NO_PERMISSIONpublic static final SocketFlow.Status NO_PERMISSION Caller has no permission to create flow.
 - 
NOT_CONNECTEDpublic static final SocketFlow.Status NOT_CONNECTED Flow can not be created because socket is not connected.
 - 
NOT_SUPPORTEDpublic static final SocketFlow.Status NOT_SUPPORTED Flow creation not supported for this socket.
 - 
ALREADY_CREATEDpublic static final SocketFlow.Status ALREADY_CREATED A flow already exists with identical attributes.
 - 
IN_PROGRESSpublic static final SocketFlow.Status IN_PROGRESS A flow is being created.
 - 
OTHERpublic static final SocketFlow.Status OTHER Some other unspecified error.
 
- 
 - 
Method Detail- 
valuespublic static SocketFlow.Status[] values() Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (SocketFlow.Status c : SocketFlow.Status.values()) System.out.println(c); - Returns:
- an array containing the constants of this enum type, in the order they are declared
 
 - 
valueOfpublic 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
 
 
- 
 
-