public static enum Connection.Socket.Flag extends Enum<Connection.Socket.Flag>
ConnectionSpec#getSocketFlag(SocketFlag)
Enum Constant and Description |
---|
SO_KEEP_ALIVE
Corresponds to SO_KEEP_ALIVE flag of
Connection.Socket . |
Modifier and Type | Method and Description |
---|---|
static Connection.Socket.Flag |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Connection.Socket.Flag[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Connection.Socket.Flag SO_KEEP_ALIVE
Connection.Socket
. @see Socket#setSoTimeout(int)
public static Connection.Socket.Flag[] values()
for (Connection.Socket.Flag c : Connection.Socket.Flag.values()) System.out.println(c);
public static Connection.Socket.Flag valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullCopyright © 2009–2017. All rights reserved.