Interface SocketChannelConfig

    • Method Detail

      • isTcpNoDelay

        boolean isTcpNoDelay()
        Gets the StandardSocketOptions.TCP_NODELAY option.
      • setTcpNoDelay

        void setTcpNoDelay​(boolean tcpNoDelay)
        Sets the StandardSocketOptions.TCP_NODELAY option.
      • getSoLinger

        int getSoLinger()
        Gets the StandardSocketOptions.SO_LINGER option.
      • setSoLinger

        void setSoLinger​(int soLinger)
        Sets the StandardSocketOptions.SO_LINGER option.
      • getSendBufferSize

        int getSendBufferSize()
        Gets the StandardSocketOptions.SO_SNDBUF option.
      • setSendBufferSize

        void setSendBufferSize​(int sendBufferSize)
        Sets the StandardSocketOptions.SO_SNDBUF option.
      • getReceiveBufferSize

        int getReceiveBufferSize()
        Gets the StandardSocketOptions.SO_RCVBUF option.
      • setReceiveBufferSize

        void setReceiveBufferSize​(int receiveBufferSize)
        Sets the StandardSocketOptions.SO_RCVBUF option.
      • isKeepAlive

        boolean isKeepAlive()
        Gets the StandardSocketOptions.SO_KEEPALIVE option.
      • setKeepAlive

        void setKeepAlive​(boolean keepAlive)
        Sets the StandardSocketOptions.SO_KEEPALIVE option.
      • getTrafficClass

        int getTrafficClass()
        Gets the StandardSocketOptions.IP_TOS option.
      • setTrafficClass

        void setTrafficClass​(int trafficClass)
        Sets the StandardSocketOptions.IP_TOS option.
      • isReuseAddress

        boolean isReuseAddress()
        Gets the StandardSocketOptions.SO_REUSEADDR option.
      • setReuseAddress

        void setReuseAddress​(boolean reuseAddress)
        Sets the StandardSocketOptions.SO_REUSEADDR option.
      • setPerformancePreferences

        void setPerformancePreferences​(int connectionTime,
                                       int latency,
                                       int bandwidth)
        Sets the performance preferences as specified in Socket.setPerformancePreferences(int, int, int).