public enum Option extends Enum<Option>
Enum Constant and Description |
---|
OPT_ACKDELAY
The Delayed ACK timeout (0 == off).
|
OPT_NODELAY
Whether to enable Nagle's algorithm (0 == off)
|
OPT_RCVBUF
Set the receive buffer size, in bytes.
|
OPT_READ_TIMEOUT
Timeout in ms for read operations(0 - no timeout)
|
OPT_SNDBUF
Set the send buffer size, in bytes.
|
OPT_WRITE_TIMEOUT
Timeout in ms for write operations(0 - no timeout)
|
Modifier and Type | Method and Description |
---|---|
static Option |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Option[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Option OPT_NODELAY
public static final Option OPT_ACKDELAY
public static final Option OPT_RCVBUF
public static final Option OPT_SNDBUF
public static final Option OPT_READ_TIMEOUT
public static final Option OPT_WRITE_TIMEOUT
public static Option[] values()
for (Option c : Option.values()) System.out.println(c);
public static Option 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 © 2018. All rights reserved.