Class TcpSO$

java.lang.Object
org.apache.pekko.io.TcpSO$
All Implemented Interfaces:
Inet.SoJavaFactories

public class TcpSO$ extends Object implements Inet.SoJavaFactories
Java API for accessing socket options.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final TcpSO$
    Static reference to the singleton instance of this Scala object.
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    org.apache.pekko.io.Tcp.SO.KeepAlive
    keepAlive(boolean on)
    pekko.io.Inet.SocketOption to enable or disable SO_KEEPALIVE
    org.apache.pekko.io.Tcp.SO.OOBInline
    oobInline(boolean on)
    pekko.io.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.
    org.apache.pekko.io.Tcp.SO.TcpNoDelay
    tcpNoDelay(boolean on)
    pekko.io.Inet.SocketOption to enable or disable TCP_NODELAY (disable or enable Nagle's algorithm)

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface org.apache.pekko.io.Inet.SoJavaFactories

    receiveBufferSize, reuseAddress, sendBufferSize, trafficClass
  • Field Details

    • MODULE$

      public static final TcpSO$ MODULE$
      Static reference to the singleton instance of this Scala object.
  • Constructor Details

    • TcpSO$

      public TcpSO$()
  • Method Details

    • keepAlive

      public org.apache.pekko.io.Tcp.SO.KeepAlive keepAlive(boolean on)
      pekko.io.Inet.SocketOption to enable or disable SO_KEEPALIVE

      For more information see java.net.Socket.setKeepAlive

    • oobInline

      public org.apache.pekko.io.Tcp.SO.OOBInline oobInline(boolean on)
      pekko.io.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

    • tcpNoDelay

      public org.apache.pekko.io.Tcp.SO.TcpNoDelay tcpNoDelay(boolean on)
      pekko.io.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