Class AbstractSocketSessionConfig

java.lang.Object
org.apache.mina.core.session.AbstractIoSessionConfig
org.apache.mina.transport.socket.AbstractSocketSessionConfig
All Implemented Interfaces:
IoSessionConfig, SocketSessionConfig
Direct Known Subclasses:
AprSocketSession.SessionConfigImpl, DefaultSocketSessionConfig, NioSocketSession.SessionConfigImpl

public abstract class AbstractSocketSessionConfig extends AbstractIoSessionConfig implements SocketSessionConfig
The TCP transport session configuration.
  • Constructor Details

    • AbstractSocketSessionConfig

      public AbstractSocketSessionConfig()
  • Method Details

    • setAll

      public void setAll(IoSessionConfig config)
      Sets all configuration properties retrieved from the specified config.
      Specified by:
      setAll in interface IoSessionConfig
      Overrides:
      setAll in class AbstractIoSessionConfig
      Parameters:
      config - The configuration to use
    • isKeepAliveChanged

      protected boolean isKeepAliveChanged()
      Returns:
      true if and only if the keepAlive 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.
    • isOobInlineChanged

      protected boolean isOobInlineChanged()
      Returns:
      true if and only if the oobInline 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()
      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()
      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()
      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.
    • isSoLingerChanged

      protected boolean isSoLingerChanged()
      Returns:
      true if and only if the soLinger 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.
    • isTcpNoDelayChanged

      protected boolean isTcpNoDelayChanged()
      Returns:
      true if and only if the tcpNoDelay 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()
      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.