@Exported public final class ExtendedSocketOptions extends Object
StandardSocketOptions
. These options may be platform
specific.Modifier and Type | Field and Description |
---|---|
static SocketOption<SocketFlow> |
SO_FLOW_SLA
Service level properties.
|
static SocketOption<Integer> |
TCP_KEEPCOUNT
Keep-Alive retransmission maximum limit.
|
static SocketOption<Integer> |
TCP_KEEPIDLE
Keep-Alive idle time.
|
static SocketOption<Integer> |
TCP_KEEPINTERVAL
Keep-Alive retransmission interval time.
|
Modifier and Type | Method and Description |
---|---|
static int |
getFlowOption(FileDescriptor fd,
SocketFlow f) |
static void |
setFlowOption(FileDescriptor fd,
SocketFlow f) |
public static final SocketOption<SocketFlow> SO_FLOW_SLA
NetworkPermission
("setOption.SO_FLOW_SLA")
or "getOption.SO_FLOW_SLA"
respectively.public static final SocketOption<Integer> TCP_KEEPIDLE
The value of this socket option is an Integer
that is the number
of seconds of idle time before keep-alive initiates a probe. The socket
option is specific to stream-oriented sockets using the TCP/IP protocol.
The exact semantics of this socket option are system dependent.
When the SO_KEEPALIVE
option is enabled, TCP probes a connection that has been
idle for some amount of time. The default value for this idle period is
system dependent, but is typically 2 hours. The TCP_KEEPIDLE
option can be used to affect this value for a given socket.
public static final SocketOption<Integer> TCP_KEEPINTERVAL
The value of this socket option is an Integer
that is the number
of seconds to wait before retransmitting a keep-alive probe. The socket
option is specific to stream-oriented sockets using the TCP/IP protocol.
The exact semantics of this socket option are system dependent.
When the SO_KEEPALIVE
option is enabled, TCP probes a connection that has been
idle for some amount of time. If the remote system does not respond to a
keep-alive probe, TCP retransmits the probe after some amount of time.
The default value for this retransmission interval is system dependent,
but is typically 75 seconds. The TCP_KEEPINTERVAL
option can be
used to affect this value for a given socket.
public static final SocketOption<Integer> TCP_KEEPCOUNT
The value of this socket option is an Integer
that is the maximum
number of keep-alive probes to be sent. The socket option is specific to
stream-oriented sockets using the TCP/IP protocol. The exact semantics of
this socket option are system dependent.
When the SO_KEEPALIVE
option is enabled, TCP probes a connection that has been
idle for some amount of time. If the remote system does not respond to a
keep-alive probe, TCP retransmits the probe a certain number of times
before a connection is considered to be broken. The default value for
this keep-alive probe retransmit limit is system dependent, but is
typically 8. The TCP_KEEPCOUNT
option can be used to affect this
value for a given socket.
public static void setFlowOption(FileDescriptor fd, SocketFlow f) throws SocketException
SocketException
public static int getFlowOption(FileDescriptor fd, SocketFlow f) throws SocketException
SocketException
Copyright © 2014, 2024, Oracle and/or its affiliates. All rights reserved.