public enum TCPSocketOptions extends Enum<TCPSocketOptions>
NativeCalls API to set these options on the Java
Socket using native OS specific calls.| Enum Constant and Description |
|---|
OPT_KEEPCNT
number of retransmissions to be sent before declaring the other end to be
dead
|
OPT_KEEPIDLE
TCP keepalive time between two transmissions on socket in idle condition
(in seconds)
|
OPT_KEEPINTVL
TCP keepalive duration between successive transmissions on socket if no
reply to packet sent after idle timeout (in seconds)
|
| Modifier and Type | Method and Description |
|---|---|
static TCPSocketOptions |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static TCPSocketOptions[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final TCPSocketOptions OPT_KEEPIDLE
public static final TCPSocketOptions OPT_KEEPINTVL
public static final TCPSocketOptions OPT_KEEPCNT
public static TCPSocketOptions[] values()
for (TCPSocketOptions c : TCPSocketOptions.values()) System.out.println(c);
public static TCPSocketOptions 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 © 2010-2015 Pivotal Software, Inc. All rights reserved.