Package org.apache.mina.transport.socket
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:
DefaultSocketSessionConfig
public abstract class AbstractSocketSessionConfig extends AbstractIoSessionConfig implements SocketSessionConfig
The TCP transport session configuration.- Author:
- Apache MINA Project
-
-
Constructor Summary
Constructors Constructor Description AbstractSocketSessionConfig()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected booleanisKeepAliveChanged()protected booleanisOobInlineChanged()protected booleanisReceiveBufferSizeChanged()protected booleanisReuseAddressChanged()protected booleanisSendBufferSizeChanged()protected booleanisSoLingerChanged()protected booleanisTcpNoDelayChanged()protected booleanisTrafficClassChanged()voidsetAll(IoSessionConfig config)Sets all configuration properties retrieved from the specifiedconfig.-
Methods inherited from class org.apache.mina.core.session.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, setWriteTimeout
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.apache.mina.core.session.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, setWriteTimeout
-
Methods inherited from interface org.apache.mina.transport.socket.SocketSessionConfig
getReceiveBufferSize, getSendBufferSize, getSoLinger, getTrafficClass, isKeepAlive, isOobInline, isReuseAddress, isTcpNoDelay, setKeepAlive, setOobInline, setReceiveBufferSize, setReuseAddress, setSendBufferSize, setSoLinger, setTcpNoDelay, setTrafficClass
-
-
-
-
Method Detail
-
setAll
public void setAll(IoSessionConfig config)
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.
-
-