public abstract class AbstractDatagramSessionConfig extends AbstractIoSessionConfig implements DatagramSessionConfig
限定符 | 构造器和说明 |
---|---|
protected |
AbstractDatagramSessionConfig() |
限定符和类型 | 方法和说明 |
---|---|
protected void |
doSetAll(IoSessionConfig config)
Implement this method to set all transport-specific configuration
properties retrieved from the specified config.
|
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 |
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, setAll, setBothIdleTime, setIdleTime, setMaxReadBufferSize, setMinReadBufferSize, setReadBufferSize, setReaderIdleTime, setThroughputCalculationInterval, setUseReadOperation, setWriterIdleTime, setWriteTimeout
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getReceiveBufferSize, getSendBufferSize, getTrafficClass, isBroadcast, isReuseAddress, setBroadcast, setReceiveBufferSize, setReuseAddress, setSendBufferSize, setTrafficClass
getBothIdleTime, getBothIdleTimeInMillis, getIdleTime, getIdleTimeInMillis, getMaxReadBufferSize, getMinReadBufferSize, getReadBufferSize, getReaderIdleTime, getReaderIdleTimeInMillis, getThroughputCalculationInterval, getThroughputCalculationIntervalInMillis, getWriterIdleTime, getWriterIdleTimeInMillis, getWriteTimeout, getWriteTimeoutInMillis, isUseReadOperation, setAll, setBothIdleTime, setIdleTime, setMaxReadBufferSize, setMinReadBufferSize, setReadBufferSize, setReaderIdleTime, setThroughputCalculationInterval, setUseReadOperation, setWriterIdleTime, setWriteTimeout
protected void doSetAll(IoSessionConfig config)
AbstractIoSessionConfig
doSetAll
在类中 AbstractIoSessionConfig
config
- the IoSessionConfig
to setprotected boolean isBroadcastChanged()
protected boolean isReceiveBufferSizeChanged()
protected boolean isReuseAddressChanged()
protected boolean isSendBufferSizeChanged()
protected boolean isTrafficClassChanged()
public boolean isCloseOnPortUnreachable()
PortUnreachableException
occurs.isCloseOnPortUnreachable
在接口中 DatagramSessionConfig
public void setCloseOnPortUnreachable(boolean closeOnPortUnreachable)
PortUnreachableException
occurs.setCloseOnPortUnreachable
在接口中 DatagramSessionConfig
closeOnPortUnreachable
- true if we should close if the port is unreachable