Package software.amazon.awssdk.crt.io
Enum SocketOptions.TcpNoDelay
- All Implemented Interfaces:
Serializable,Comparable<SocketOptions.TcpNoDelay>
- Enclosing class:
- SocketOptions
Controls the TCP_NODELAY option (Nagle's algorithm). TCP only; ignored for UDP and LOCAL sockets.
-
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionstatic SocketOptions.TcpNoDelayReturns the enum constant of this type with the specified name.static SocketOptions.TcpNoDelay[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
DEFAULT
Leaves the OS default in place (Nagle's algorithm typically enabled). -
ON
Disables Nagle's algorithm, sending small writes immediately. -
OFF
Explicitly enables Nagle's algorithm.
-
-
Method Details
-
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
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
-