Class HotRodRouterConfiguration


  • public class HotRodRouterConfiguration
    extends Object
    Router's configuration for Hot Rod.
    Author:
    Sebastian Ɓaskawiec
    • Constructor Detail

      • HotRodRouterConfiguration

        public HotRodRouterConfiguration​(InetAddress ip,
                                         int port,
                                         int sendBufferSize,
                                         int receiveBufferSize,
                                         boolean tcpKeepAlive,
                                         boolean tcpNoDelay)
        Creates new configuration based on the IP address and port.
        Parameters:
        ip - The IP address used for binding. Can not be null.
        port - Port used for binding. Can be 0, in that case a random port is assigned.
        tcpKeepAlive - Keep alive TCP setting.
        receiveBufferSize - Receive buffer size.
        sendBufferSize - Send buffer size
        tcpNoDelay - TCP No Delay setting.
    • Method Detail

      • tcpNoDelay

        public boolean tcpNoDelay()
        Returns TCP No Delay setting.
      • tcpKeepAlive

        public boolean tcpKeepAlive()
        Returns TCP Keep Alive setting.
      • sendBufferSize

        public int sendBufferSize()
        Returns Send buffer size.
      • receiveBufferSize

        public int receiveBufferSize()
        Returns Receive buffer size.
      • getPort

        public int getPort()