Package akka.io

Class TcpSO


  • public class TcpSO
    extends java.lang.Object
    Java 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 akka.io.Tcp.SO.KeepAlive keepAlive​(boolean on)
      Inet.SocketOption to enable or disable SO_KEEPALIVE
      static akka.io.Tcp.SO.OOBInline oobInline​(boolean on)
      Inet.SocketOption to enable or disable OOBINLINE (receipt of TCP urgent data) By default, this option is disabled and TCP urgent data is silently discarded.
      static akka.io.Inet.SO.ReceiveBufferSize receiveBufferSize​(int size)  
      static akka.io.Inet.SO.ReuseAddress reuseAddress​(boolean on)  
      static akka.io.Inet.SO.SendBufferSize sendBufferSize​(int size)  
      static akka.io.Tcp.SO.TcpNoDelay tcpNoDelay​(boolean on)
      Inet.SocketOption to enable or disable TCP_NODELAY (disable or enable Nagle's algorithm)
      static akka.io.Inet.SO.TrafficClass trafficClass​(int tc)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • TcpSO

        public TcpSO()
    • Method Detail

      • keepAlive

        public static akka.io.Tcp.SO.KeepAlive keepAlive​(boolean on)
        Inet.SocketOption to enable or disable SO_KEEPALIVE

        For more information see java.net.Socket.setKeepAlive

        Parameters:
        on - (undocumented)
        Returns:
        (undocumented)
      • oobInline

        public static akka.io.Tcp.SO.OOBInline oobInline​(boolean on)
        Inet.SocketOption to 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

        Parameters:
        on - (undocumented)
        Returns:
        (undocumented)
      • tcpNoDelay

        public static akka.io.Tcp.SO.TcpNoDelay tcpNoDelay​(boolean on)
        Inet.SocketOption to 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

        Parameters:
        on - (undocumented)
        Returns:
        (undocumented)
      • receiveBufferSize

        public static akka.io.Inet.SO.ReceiveBufferSize receiveBufferSize​(int size)
      • reuseAddress

        public static akka.io.Inet.SO.ReuseAddress reuseAddress​(boolean on)
      • sendBufferSize

        public static akka.io.Inet.SO.SendBufferSize sendBufferSize​(int size)
      • trafficClass

        public static akka.io.Inet.SO.TrafficClass trafficClass​(int tc)