Class DefaultDatagramSessionConfig

    • Constructor Detail

      • DefaultDatagramSessionConfig

        public DefaultDatagramSessionConfig()
        Creates a new instance.
    • Method Detail

      • setReuseAddress

        public void setReuseAddress​(boolean reuseAddress)
        Parameters:
        reuseAddress - Tells if SO_REUSEADDR is enabled or disabled
        See Also:
        DatagramSocket.setReuseAddress(boolean)
      • setTrafficClass

        public void setTrafficClass​(int trafficClass)
        Parameters:
        trafficClass - The traffic class to set, one of IPTOS_LOWCOST (0x02) IPTOS_RELIABILITY (0x04), IPTOS_THROUGHPUT (0x08) or IPTOS_LOWDELAY (0x10)
        See Also:
        DatagramSocket.setTrafficClass(int)
      • isBroadcastChanged

        protected boolean isBroadcastChanged()
        Overrides:
        isBroadcastChanged in class AbstractDatagramSessionConfig
        Returns:
        true if and only if the broadcast property has been changed by its setter method. The system call related with the property is made only when this method returns true. By default, this method always returns true to simplify implementation of subclasses, but overriding the default behavior is always encouraged.
      • isReceiveBufferSizeChanged

        protected boolean isReceiveBufferSizeChanged()
        Overrides:
        isReceiveBufferSizeChanged in class AbstractDatagramSessionConfig
        Returns:
        true if and only if the receiveBufferSize property has been changed by its setter method. The system call related with the property is made only when this method returns true. By default, this method always returns true to simplify implementation of subclasses, but overriding the default behavior is always encouraged.
      • isReuseAddressChanged

        protected boolean isReuseAddressChanged()
        Overrides:
        isReuseAddressChanged in class AbstractDatagramSessionConfig
        Returns:
        true if and only if the reuseAddress property has been changed by its setter method. The system call related with the property is made only when this method returns true. By default, this method always returns true to simplify implementation of subclasses, but overriding the default behavior is always encouraged.
      • isSendBufferSizeChanged

        protected boolean isSendBufferSizeChanged()
        Overrides:
        isSendBufferSizeChanged in class AbstractDatagramSessionConfig
        Returns:
        true if and only if the sendBufferSize property has been changed by its setter method. The system call related with the property is made only when this method returns true. By default, this method always returns true to simplify implementation of subclasses, but overriding the default behavior is always encouraged.
      • isTrafficClassChanged

        protected boolean isTrafficClassChanged()
        Overrides:
        isTrafficClassChanged in class AbstractDatagramSessionConfig
        Returns:
        true if and only if the trafficClass property has been changed by its setter method. The system call related with the property is made only when this method returns true. By default, this method always returns true to simplify implementation of subclasses, but overriding the default behavior is always encouraged.