public abstract class AbstractDatagramSessionConfig extends AbstractIoSessionConfig implements DatagramSessionConfig
| Constructor and Description |
|---|
AbstractDatagramSessionConfig() |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
isBroadcastChanged() |
boolean |
isCloseOnPortUnreachable()
If method returns true, it means session should be closed when a
PortUnreachableException occurs. |
protected boolean |
isReceiveBufferSizeChanged() |
protected boolean |
isReuseAddressChanged() |
protected boolean |
isSendBufferSizeChanged() |
protected boolean |
isTrafficClassChanged() |
void |
setAll(IoSessionConfig config)
Sets all configuration properties retrieved from the specified
config. |
void |
setCloseOnPortUnreachable(boolean closeOnPortUnreachable)
Sets if the session should be closed if an
PortUnreachableException
occurs. |
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, setWriteTimeoutclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetReceiveBufferSize, getSendBufferSize, getTrafficClass, isBroadcast, isReuseAddress, setBroadcast, setReceiveBufferSize, setReuseAddress, setSendBufferSize, setTrafficClassgetBothIdleTime, getBothIdleTimeInMillis, getIdleTime, getIdleTimeInMillis, getMaxReadBufferSize, getMinReadBufferSize, getReadBufferSize, getReaderIdleTime, getReaderIdleTimeInMillis, getThroughputCalculationInterval, getThroughputCalculationIntervalInMillis, getWriterIdleTime, getWriterIdleTimeInMillis, getWriteTimeout, getWriteTimeoutInMillis, isUseReadOperation, setBothIdleTime, setIdleTime, setMaxReadBufferSize, setMinReadBufferSize, setReadBufferSize, setReaderIdleTime, setThroughputCalculationInterval, setUseReadOperation, setWriterIdleTime, setWriteTimeoutpublic void setAll(IoSessionConfig config)
config.setAll in interface IoSessionConfigsetAll in class AbstractIoSessionConfigconfig - The configuration to useprotected boolean isBroadcastChanged()
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.protected boolean isReceiveBufferSizeChanged()
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.protected boolean isReuseAddressChanged()
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.protected boolean isSendBufferSizeChanged()
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.protected boolean isTrafficClassChanged()
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.public boolean isCloseOnPortUnreachable()
PortUnreachableException occurs.isCloseOnPortUnreachable in interface DatagramSessionConfigpublic void setCloseOnPortUnreachable(boolean closeOnPortUnreachable)
PortUnreachableException
occurs.setCloseOnPortUnreachable in interface DatagramSessionConfigcloseOnPortUnreachable - true if we should close if the port is unreachableCopyright © 2004–2024 Apache MINA Project. All rights reserved.