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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanprotected booleanprotected booleanprotected booleanprotected booleanprotected booleanprotected booleanprotected booleanvoidsetAll(IoSessionConfig config) Sets all configuration properties retrieved from the specifiedconfig.Methods inherited from class AbstractIoSessionConfig
getBothIdleTime, getBothIdleTimeInMillis, getIdleTime, getIdleTimeInMillis, getMaxReadBufferSize, getMinReadBufferSize, getReadBufferSize, getReaderIdleTime, getReaderIdleTimeInMillis, getThroughputCalculationInterval, getThroughputCalculationIntervalInMillis, getWriterIdleTime, getWriterIdleTimeInMillis, getWriteTimeout, getWriteTimeoutInMillis, isUseReadOperation, setBothIdleTime, setIdleTime, setMaxReadBufferSize, setMinReadBufferSize, setReadBufferSize, setReaderIdleTime, setThroughputCalculationInterval, setUseReadOperation, setWriterIdleTime, setWriteTimeoutMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface IoSessionConfig
getBothIdleTime, getBothIdleTimeInMillis, getIdleTime, getIdleTimeInMillis, getMaxReadBufferSize, getMinReadBufferSize, getReadBufferSize, getReaderIdleTime, getReaderIdleTimeInMillis, getThroughputCalculationInterval, getThroughputCalculationIntervalInMillis, getWriterIdleTime, getWriterIdleTimeInMillis, getWriteTimeout, getWriteTimeoutInMillis, isUseReadOperation, setBothIdleTime, setIdleTime, setMaxReadBufferSize, setMinReadBufferSize, setReadBufferSize, setReaderIdleTime, setThroughputCalculationInterval, setUseReadOperation, setWriterIdleTime, setWriteTimeoutMethods inherited from interface SocketSessionConfig
getReceiveBufferSize, getSendBufferSize, getSoLinger, getTrafficClass, isKeepAlive, isOobInline, isReuseAddress, isTcpNoDelay, setKeepAlive, setOobInline, setReceiveBufferSize, setReuseAddress, setSendBufferSize, setSoLinger, setTcpNoDelay, setTrafficClass
-
Constructor Details
-
AbstractSocketSessionConfig
public AbstractSocketSessionConfig()
-
-
Method Details
-
setAll
Sets all configuration properties retrieved from the specifiedconfig.- Specified by:
setAllin interfaceIoSessionConfig- Overrides:
setAllin classAbstractIoSessionConfig- Parameters:
config- The configuration to use
-
isKeepAliveChanged
protected boolean isKeepAliveChanged()- Returns:
trueif and only if thekeepAliveproperty has been changed by its setter method. The system call related with the property is made only when this method returnstrue. By default, this method always returnstrueto simplify implementation of subclasses, but overriding the default behavior is always encouraged.
-
isOobInlineChanged
protected boolean isOobInlineChanged()- Returns:
trueif and only if theoobInlineproperty has been changed by its setter method. The system call related with the property is made only when this method returnstrue. By default, this method always returnstrueto simplify implementation of subclasses, but overriding the default behavior is always encouraged.
-
isReceiveBufferSizeChanged
protected boolean isReceiveBufferSizeChanged()- Returns:
trueif and only if thereceiveBufferSizeproperty has been changed by its setter method. The system call related with the property is made only when this method returnstrue. By default, this method always returnstrueto simplify implementation of subclasses, but overriding the default behavior is always encouraged.
-
isReuseAddressChanged
protected boolean isReuseAddressChanged()- Returns:
trueif and only if thereuseAddressproperty has been changed by its setter method. The system call related with the property is made only when this method returnstrue. By default, this method always returnstrueto simplify implementation of subclasses, but overriding the default behavior is always encouraged.
-
isSendBufferSizeChanged
protected boolean isSendBufferSizeChanged()- Returns:
trueif and only if thesendBufferSizeproperty has been changed by its setter method. The system call related with the property is made only when this method returnstrue. By default, this method always returnstrueto simplify implementation of subclasses, but overriding the default behavior is always encouraged.
-
isSoLingerChanged
protected boolean isSoLingerChanged()- Returns:
trueif and only if thesoLingerproperty has been changed by its setter method. The system call related with the property is made only when this method returnstrue. By default, this method always returnstrueto simplify implementation of subclasses, but overriding the default behavior is always encouraged.
-
isTcpNoDelayChanged
protected boolean isTcpNoDelayChanged()- Returns:
trueif and only if thetcpNoDelayproperty has been changed by its setter method. The system call related with the property is made only when this method returnstrue. By default, this method always returnstrueto simplify implementation of subclasses, but overriding the default behavior is always encouraged.
-
isTrafficClassChanged
protected boolean isTrafficClassChanged()- Returns:
trueif and only if thetrafficClassproperty has been changed by its setter method. The system call related with the property is made only when this method returnstrue. By default, this method always returnstrueto simplify implementation of subclasses, but overriding the default behavior is always encouraged.
-