Package software.amazon.awssdk.crt.io
Enum SocketOptions.TcpNoDelay
- java.lang.Object
-
- java.lang.Enum<SocketOptions.TcpNoDelay>
-
- software.amazon.awssdk.crt.io.SocketOptions.TcpNoDelay
-
- All Implemented Interfaces:
Serializable,Comparable<SocketOptions.TcpNoDelay>
- Enclosing class:
- SocketOptions
public static enum SocketOptions.TcpNoDelay extends Enum<SocketOptions.TcpNoDelay>
Controls the TCP_NODELAY option (Nagle's algorithm). TCP only; ignored for UDP and LOCAL sockets.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static SocketOptions.TcpNoDelayvalueOf(String name)Returns 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 Detail
-
DEFAULT
public static final SocketOptions.TcpNoDelay DEFAULT
Leaves the OS default in place (Nagle's algorithm typically enabled).
-
ON
public static final SocketOptions.TcpNoDelay ON
Disables Nagle's algorithm, sending small writes immediately.
-
OFF
public static final SocketOptions.TcpNoDelay OFF
Explicitly enables Nagle's algorithm.
-
-
Method Detail
-
values
public static SocketOptions.TcpNoDelay[] 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 (SocketOptions.TcpNoDelay c : SocketOptions.TcpNoDelay.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static SocketOptions.TcpNoDelay 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
-
-