java.net.StandardSocketOptions . These options may be platform
specific.
| Modifier and Type | Class and Description |
|---|---|
| private static class | |
| pack-priv static class |
| Modifier and Type | Field and Description |
|---|---|
| private static final Set | |
| private static final JavaIOFileDescriptorAccess | |
| private static final boolean | |
| public static final SocketOption | IP_DONTFRAGMENT
Disable IP packet fragmentation. |
| private static final boolean | |
| private static final boolean | |
| private static final boolean | |
| private static final ExtendedSocketOptions. | |
| private static final boolean | |
| public static final SocketOption | SO_INCOMING_NAPI_ID
Identifies the receive queue that the last incoming packet for the socket was received on. |
| public static final SocketOption | SO_PEERCRED
Unix Domain peer credentials. |
| public static final SocketOption | TCP_KEEPCOUNT
Keep-Alive retransmission maximum limit. |
| public static final SocketOption | TCP_KEEPIDLE
Keep-Alive idle time. |
| public static final SocketOption | TCP_KEEPINTERVAL
Keep-Alive retransmission interval time. |
| public static final SocketOption | TCP_QUICKACK
Disable Delayed Acknowledgements. |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| private static int | |
| private static boolean | |
| private static Object | |
| private static Object | |
| private static int | |
| private static int | |
| private static int | |
| pack-priv static Set | |
| private static void | |
| private static void | |
| private static void | |
| private static void | |
| private static void |
| extendedOptions | back to summary |
|---|---|
| private static final Set<SocketOption<?>> extendedOptions | |
| fdAccess | back to summary |
|---|---|
| private static final JavaIOFileDescriptorAccess fdAccess | |
| incomingNapiIdOptSupported | back to summary |
|---|---|
| private static final boolean incomingNapiIdOptSupported | |
| IP_DONTFRAGMENT | back to summary |
|---|---|
| public static final SocketOption<Boolean> IP_DONTFRAGMENT Disable IP packet fragmentation. The value of this socket option is a API Note For IPv4 this option sets the DF (Do not Fragment) flag in the IP packet header. This instructs intermediate routers to not fragment the packet. IPv6 routers never fragment packets. Instead, fragmentation is handled by the sending and receiving nodes exclusively. Setting this option for an IPv6 socket ensures that packets to be sent are never fragmented, in which case, the local network MTU must be observed.
| |
| ipDontFragmentSupported | back to summary |
|---|---|
| private static final boolean ipDontFragmentSupported | |
| keepAliveOptSupported | back to summary |
|---|---|
| private static final boolean keepAliveOptSupported | |
| peerCredentialsSupported | back to summary |
|---|---|
| private static final boolean peerCredentialsSupported | |
| platformSocketOptions | back to summary |
|---|---|
| private static final ExtendedSocketOptions. | |
| quickAckSupported | back to summary |
|---|---|
| private static final boolean quickAckSupported | |
| SO_INCOMING_NAPI_ID | back to summary |
|---|---|
| public static final SocketOption<Integer> SO_INCOMING_NAPI_ID Identifies the receive queue that the last incoming packet for the socket was received on. The value of this socket option is a positive The socket option is read-only and an attempt to set the socket option
will throw API Note Network devices may have multiple queues or channels to transmit and receive
network packets. The
| |
| SO_PEERCRED | back to summary |
|---|---|
| public static final SocketOption<UnixDomainPrincipal> SO_PEERCRED Unix Domain peer credentials. The value of this socket option is a The socket option is read-only and an attempt to set the socket option
will throw
| |
| TCP_KEEPCOUNT | back to summary |
|---|---|
| public static final SocketOption<Integer> TCP_KEEPCOUNT Keep-Alive retransmission maximum limit.
The value of this socket option is an
When the
| |
| TCP_KEEPIDLE | back to summary |
|---|---|
| public static final SocketOption<Integer> TCP_KEEPIDLE Keep-Alive idle time.
The value of this socket option is an
When the
| |
| TCP_KEEPINTERVAL | back to summary |
|---|---|
| public static final SocketOption<Integer> TCP_KEEPINTERVAL Keep-Alive retransmission interval time.
The value of this socket option is an
When the
| |
| TCP_QUICKACK | back to summary |
|---|---|
| public static final SocketOption<Boolean> TCP_QUICKACK Disable Delayed Acknowledgements.
This socket option can be used to reduce or disable delayed
acknowledgments (ACKs). When
The value of this socket option is a
| |
| ExtendedSocketOptions | back to summary |
|---|---|
| private ExtendedSocketOptions() | |
| getIncomingNapiId | back to summary |
|---|---|
| private static int getIncomingNapiId(FileDescriptor fd) throws SocketException | |
| getIpDontFragment | back to summary |
|---|---|
| private static boolean getIpDontFragment(FileDescriptor fd, boolean isIPv6) throws SocketException | |
| getQuickAckOption | back to summary |
|---|---|
| private static Object getQuickAckOption(FileDescriptor fd) throws SocketException | |
| getSoPeerCred | back to summary |
|---|---|
| private static Object getSoPeerCred(FileDescriptor fd) throws SocketException | |
| getTcpKeepAliveIntvl | back to summary |
|---|---|
| private static int getTcpKeepAliveIntvl(FileDescriptor fd) throws SocketException | |
| getTcpKeepAliveProbes | back to summary |
|---|---|
| private static int getTcpKeepAliveProbes(FileDescriptor fd) throws SocketException | |
| getTcpKeepAliveTime | back to summary |
|---|---|
| private static int getTcpKeepAliveTime(FileDescriptor fd) throws SocketException | |
| options | back to summary |
|---|---|
| pack-priv static Set | |
| setIpDontFragment | back to summary |
|---|---|
| private static void setIpDontFragment(FileDescriptor fd, boolean value, boolean isIPv6) throws SocketException | |
| setQuickAckOption | back to summary |
|---|---|
| private static void setQuickAckOption(FileDescriptor fd, boolean enable) throws SocketException | |
| setTcpKeepAliveIntvl | back to summary |
|---|---|
| private static void setTcpKeepAliveIntvl(FileDescriptor fd, int value) throws SocketException | |
| setTcpKeepAliveProbes | back to summary |
|---|---|
| private static void setTcpKeepAliveProbes(FileDescriptor fd, int value) throws SocketException | |
| setTcpKeepAliveTime | back to summary |
|---|---|
| private static void setTcpKeepAliveTime(FileDescriptor fd, int value) throws SocketException | |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| name | back to summary |
|---|---|
| private final String name | |
| type | back to summary |
|---|---|
| private final Class<T> type | |
| ExtSocketOption | back to summary |
|---|---|
| pack-priv ExtSocketOption(String name, Class<T> type) | |
| name | back to summary |
|---|---|
| public String name() Implements java. Doc from java. Returns the name of the socket option.
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object.
Satisfying this method's contract implies a non-
| |
| type | back to summary |
|---|---|
| public Class Implements java. Doc from java. Returns the type of the socket option value.
| |
| Modifier and Type | Field and Description |
|---|---|
| private static final ExtendedSocketOptions. |
| Access | Constructor and Description |
|---|---|
| protected |
| Modifier and Type | Method and Description |
|---|---|
| private static ExtendedSocketOptions. | |
| pack-priv static ExtendedSocketOptions. | |
| pack-priv int | |
| pack-priv boolean | |
| pack-priv boolean | |
| pack-priv UnixDomainPrincipal | |
| pack-priv int | |
| pack-priv int | |
| pack-priv int | |
| pack-priv boolean | |
| pack-priv boolean | |
| pack-priv boolean | |
| private static ExtendedSocketOptions. | |
| pack-priv boolean | |
| pack-priv boolean | |
| pack-priv void | |
| pack-priv void | |
| pack-priv void | |
| pack-priv void | |
| pack-priv void |
| instance | back to summary |
|---|---|
| private static final ExtendedSocketOptions. | |
| PlatformSocketOptions | back to summary |
|---|---|
| protected PlatformSocketOptions() | |
| create | back to summary |
|---|---|
| private static ExtendedSocketOptions. | |
| get | back to summary |
|---|---|
| pack-priv static ExtendedSocketOptions. | |
| getIncomingNapiId | back to summary |
|---|---|
| pack-priv int getIncomingNapiId(int fd) throws SocketException | |
| getIpDontFragment | back to summary |
|---|---|
| pack-priv boolean getIpDontFragment(int fd, boolean isIPv6) throws SocketException | |
| getQuickAck | back to summary |
|---|---|
| pack-priv boolean getQuickAck(int fd) throws SocketException | |
| getSoPeerCred | back to summary |
|---|---|
| pack-priv UnixDomainPrincipal getSoPeerCred(int fd) throws SocketException | |
| getTcpKeepAliveIntvl | back to summary |
|---|---|
| pack-priv int getTcpKeepAliveIntvl(int fd) throws SocketException | |
| getTcpKeepAliveProbes | back to summary |
|---|---|
| pack-priv int getTcpKeepAliveProbes(int fd) throws SocketException | |
| getTcpKeepAliveTime | back to summary |
|---|---|
| pack-priv int getTcpKeepAliveTime(int fd) throws SocketException | |
| incomingNapiIdSupported | back to summary |
|---|---|
| pack-priv boolean incomingNapiIdSupported() | |
| ipDontFragmentSupported | back to summary |
|---|---|
| pack-priv boolean ipDontFragmentSupported() | |
| keepAliveOptionsSupported | back to summary |
|---|---|
| pack-priv boolean keepAliveOptionsSupported() | |
| newInstance | back to summary |
|---|---|
private static ExtendedSocketOptions.
| |
| peerCredentialsSupported | back to summary |
|---|---|
| pack-priv boolean peerCredentialsSupported() | |
| quickAckSupported | back to summary |
|---|---|
| pack-priv boolean quickAckSupported() | |
| setIpDontFragment | back to summary |
|---|---|
| pack-priv void setIpDontFragment(int fd, final boolean value, boolean isIPv6) throws SocketException | |
| setQuickAck | back to summary |
|---|---|
| pack-priv void setQuickAck(int fd, boolean on) throws SocketException | |
| setTcpKeepAliveIntvl | back to summary |
|---|---|
| pack-priv void setTcpKeepAliveIntvl(int fd, final int value) throws SocketException | |
| setTcpKeepAliveProbes | back to summary |
|---|---|
| pack-priv void setTcpKeepAliveProbes(int fd, final int value) throws SocketException | |
| setTcpKeepAliveTime | back to summary |
|---|---|
| pack-priv void setTcpKeepAliveTime(int fd, final int value) throws SocketException | |