On this page
Enum SocketFlow.Status
- 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 Constants
Enum Constant | Description |
---|---|
ALREADY_CREATED |
A flow already exists with identical attributes. |
IN_PROGRESS |
A flow is being created. |
NO_PERMISSION |
Caller has no permission to create flow. |
NO_STATUS |
Set or get socket option has not been called yet. |
NOT_CONNECTED |
Flow can not be created because socket is not connected. |
NOT_SUPPORTED |
Flow creation not supported for this socket. |
OK |
Flow successfully created. |
OTHER |
Some other unspecified error. |
Methods
Modifier and Type | Method | Description |
---|---|---|
static SocketFlow.Status |
valueOf(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. |
Methods declared in class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
Methods declared in class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
Enum Constants
NO_STATUS
public 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.
OK
public static final SocketFlow.Status OK
Flow successfully created.
NO_PERMISSION
public static final SocketFlow.Status NO_PERMISSION
Caller has no permission to create flow.
NOT_CONNECTED
public static final SocketFlow.Status NOT_CONNECTED
Flow can not be created because socket is not connected.
NOT_SUPPORTED
public static final SocketFlow.Status NOT_SUPPORTED
Flow creation not supported for this socket.
ALREADY_CREATED
public static final SocketFlow.Status ALREADY_CREATED
A flow already exists with identical attributes.
IN_PROGRESS
public static final SocketFlow.Status IN_PROGRESS
A flow is being created.
OTHER
public static final SocketFlow.Status OTHER
Some other unspecified error.
Methods
values
public 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
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 nameNullPointerException
- if the argument is null
© 1993, 2020, Oracle and/or its affiliates. All rights reserved.
Documentation extracted from Debian's OpenJDK Development Kit package.
Licensed under the GNU General Public License, version 2, with the Classpath Exception.
Various third party code in OpenJDK is licensed under different licenses (see Debian package).
Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
https://docs.oracle.com/en/java/javase/11/docs/api/jdk.net/jdk/net/SocketFlow.Status.html