Package org.apache.mina.transport.socket
Class AbstractDatagramSessionConfig
- java.lang.Object
-
- org.apache.mina.core.session.AbstractIoSessionConfig
-
- org.apache.mina.transport.socket.AbstractDatagramSessionConfig
-
- All Implemented Interfaces:
IoSessionConfig,DatagramSessionConfig
- Direct Known Subclasses:
DefaultDatagramSessionConfig,NioDatagramSessionConfig
public abstract class AbstractDatagramSessionConfig extends AbstractIoSessionConfig implements DatagramSessionConfig
The Datagram transport session configuration.- Author:
- Apache MINA Project
-
-
Constructor Summary
Constructors Constructor Description AbstractDatagramSessionConfig()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected booleanisBroadcastChanged()booleanisCloseOnPortUnreachable()If method returns true, it means session should be closed when aPortUnreachableExceptionoccurs.protected booleanisReceiveBufferSizeChanged()protected booleanisReuseAddressChanged()protected booleanisSendBufferSizeChanged()protected booleanisTrafficClassChanged()voidsetAll(IoSessionConfig config)Sets all configuration properties retrieved from the specifiedconfig.voidsetCloseOnPortUnreachable(boolean closeOnPortUnreachable)Sets if the session should be closed if anPortUnreachableExceptionoccurs.-
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.transport.socket.DatagramSessionConfig
getReceiveBufferSize, getSendBufferSize, getTrafficClass, isBroadcast, isReuseAddress, setBroadcast, setReceiveBufferSize, setReuseAddress, setSendBufferSize, setTrafficClass
-
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
-
-
-
-
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
-
isBroadcastChanged
protected boolean isBroadcastChanged()
- Returns:
trueif and only if thebroadcastproperty 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.
-
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.
-
isCloseOnPortUnreachable
public boolean isCloseOnPortUnreachable()
If method returns true, it means session should be closed when aPortUnreachableExceptionoccurs.- Specified by:
isCloseOnPortUnreachablein interfaceDatagramSessionConfig- Returns:
- Tells if we should close if the port is unreachable
-
setCloseOnPortUnreachable
public void setCloseOnPortUnreachable(boolean closeOnPortUnreachable)
Sets if the session should be closed if anPortUnreachableExceptionoccurs.- Specified by:
setCloseOnPortUnreachablein interfaceDatagramSessionConfig- Parameters:
closeOnPortUnreachable-trueif we should close if the port is unreachable
-
-