Class SocketOptions

    • Constructor Detail

      • SocketOptions

        public SocketOptions()
    • Method Detail

      • apply

        public void apply​(java.net.Socket socket)
                   throws java.net.SocketException
        Throws:
        java.net.SocketException
      • build

        public SocketOptions build()
        Description copied from interface: Builder
        Builds the object after all configuration has been set. This will use default values for any unspecified attributes for the object.
        Specified by:
        build in interface Builder<SocketOptions>
        Returns:
        the configured instance.
      • getActualTrafficClass

        public java.lang.Integer getActualTrafficClass()
      • getReceiveBufferSize

        public java.lang.Integer getReceiveBufferSize()
      • getSendBufferSize

        public java.lang.Integer getSendBufferSize()
      • getSoLinger

        public java.lang.Integer getSoLinger()
      • getSoTimeout

        public java.lang.Integer getSoTimeout()
      • getTrafficClass

        public java.lang.Integer getTrafficClass()
      • isKeepAlive

        public java.lang.Boolean isKeepAlive()
      • isOobInline

        public java.lang.Boolean isOobInline()
      • isReuseAddress

        public java.lang.Boolean isReuseAddress()
      • isTcpNoDelay

        public java.lang.Boolean isTcpNoDelay()
      • setKeepAlive

        public SocketOptions setKeepAlive​(boolean keepAlive)
      • setOobInline

        public SocketOptions setOobInline​(boolean oobInline)
      • setReceiveBufferSize

        public SocketOptions setReceiveBufferSize​(int receiveBufferSize)
      • setReuseAddress

        public SocketOptions setReuseAddress​(boolean reuseAddress)
      • setSendBufferSize

        public SocketOptions setSendBufferSize​(int sendBufferSize)
      • setSoLinger

        public SocketOptions setSoLinger​(int soLinger)
      • setSoTimeout

        public SocketOptions setSoTimeout​(int soTimeout)
      • setTcpNoDelay

        public SocketOptions setTcpNoDelay​(boolean tcpNoDelay)
      • setTrafficClass

        public SocketOptions setTrafficClass​(int trafficClass)
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object