Package org.apache.pekko.io
Class TcpSO
- java.lang.Object
-
- org.apache.pekko.io.TcpSO
-
public class TcpSO extends java.lang.ObjectJava API for accessing socket options.
-
-
Constructor Summary
Constructors Constructor Description TcpSO()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static org.apache.pekko.io.Tcp.SO.KeepAlivekeepAlive(boolean on)pekko.io.Inet.SocketOptionto enable or disable SO_KEEPALIVEstatic org.apache.pekko.io.Tcp.SO.OOBInlineoobInline(boolean on)pekko.io.Inet.SocketOptionto enable or disable OOBINLINE (receipt of TCP urgent data) By default, this option is disabled and TCP urgent data is silently discarded.static org.apache.pekko.io.Inet.SO.ReceiveBufferSizereceiveBufferSize(int size)static org.apache.pekko.io.Inet.SO.ReuseAddressreuseAddress(boolean on)static org.apache.pekko.io.Inet.SO.SendBufferSizesendBufferSize(int size)static org.apache.pekko.io.Tcp.SO.TcpNoDelaytcpNoDelay(boolean on)pekko.io.Inet.SocketOptionto enable or disable TCP_NODELAY (disable or enable Nagle's algorithm)static org.apache.pekko.io.Inet.SO.TrafficClasstrafficClass(int tc)
-
-
-
Method Detail
-
keepAlive
public static org.apache.pekko.io.Tcp.SO.KeepAlive keepAlive(boolean on)
pekko.io.Inet.SocketOptionto enable or disable SO_KEEPALIVEFor more information see
java.net.Socket.setKeepAlive
-
oobInline
public static org.apache.pekko.io.Tcp.SO.OOBInline oobInline(boolean on)
pekko.io.Inet.SocketOptionto enable or disable OOBINLINE (receipt of TCP urgent data) By default, this option is disabled and TCP urgent data is silently discarded.For more information see
java.net.Socket.setOOBInline
-
tcpNoDelay
public static org.apache.pekko.io.Tcp.SO.TcpNoDelay tcpNoDelay(boolean on)
pekko.io.Inet.SocketOptionto enable or disable TCP_NODELAY (disable or enable Nagle's algorithm)Please note, that TCP_NODELAY is enabled by default.
For more information see
java.net.Socket.setTcpNoDelay
-
receiveBufferSize
public static org.apache.pekko.io.Inet.SO.ReceiveBufferSize receiveBufferSize(int size)
-
reuseAddress
public static org.apache.pekko.io.Inet.SO.ReuseAddress reuseAddress(boolean on)
-
sendBufferSize
public static org.apache.pekko.io.Inet.SO.SendBufferSize sendBufferSize(int size)
-
trafficClass
public static org.apache.pekko.io.Inet.SO.TrafficClass trafficClass(int tc)
-
-