public class DefaultDatagramSessionConfig extends AbstractDatagramSessionConfig
DatagramSessionConfig
.Constructor and Description |
---|
DefaultDatagramSessionConfig()
Creates a new instance.
|
Modifier and Type | Method and Description |
---|---|
int |
getReceiveBufferSize() |
int |
getSendBufferSize() |
int |
getTrafficClass() |
boolean |
isBroadcast() |
protected boolean |
isBroadcastChanged() |
protected boolean |
isReceiveBufferSizeChanged() |
boolean |
isReuseAddress() |
protected boolean |
isReuseAddressChanged() |
protected boolean |
isSendBufferSizeChanged() |
protected boolean |
isTrafficClassChanged() |
void |
setBroadcast(boolean broadcast) |
void |
setReceiveBufferSize(int receiveBufferSize) |
void |
setReuseAddress(boolean reuseAddress) |
void |
setSendBufferSize(int sendBufferSize) |
void |
setTrafficClass(int trafficClass) |
isCloseOnPortUnreachable, setAll, setCloseOnPortUnreachable
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
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
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
public DefaultDatagramSessionConfig()
public boolean isBroadcast()
true
if SO_BROADCAST is enabled.DatagramSocket.getBroadcast()
public void setBroadcast(boolean broadcast)
broadcast
- Tells if SO_BROACAST is enabled or notDatagramSocket.setBroadcast(boolean)
public boolean isReuseAddress()
true
if SO_REUSEADDR is enabled.DatagramSocket.getReuseAddress()
public void setReuseAddress(boolean reuseAddress)
reuseAddress
- Tells if SO_REUSEADDR is enabled or disabledDatagramSocket.setReuseAddress(boolean)
public int getReceiveBufferSize()
DatagramSocket.getReceiveBufferSize()
public void setReceiveBufferSize(int receiveBufferSize)
receiveBufferSize
- The size of the receive bufferDatagramSocket.setReceiveBufferSize(int)
public int getSendBufferSize()
DatagramSocket.getSendBufferSize()
public void setSendBufferSize(int sendBufferSize)
sendBufferSize
- The size of the send bufferDatagramSocket.setSendBufferSize(int)
public int getTrafficClass()
DatagramSocket.getTrafficClass()
public void setTrafficClass(int trafficClass)
trafficClass
- The traffic class to set, one of IPTOS_LOWCOST (0x02)
IPTOS_RELIABILITY (0x04), IPTOS_THROUGHPUT (0x08) or IPTOS_LOWDELAY (0x10)DatagramSocket.setTrafficClass(int)
protected boolean isBroadcastChanged()
isBroadcastChanged
in class AbstractDatagramSessionConfig
true</tt> if and only if the <tt>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()
isReceiveBufferSizeChanged
in class AbstractDatagramSessionConfig
true</tt> if and only if the <tt>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()
isReuseAddressChanged
in class AbstractDatagramSessionConfig
true</tt> if and only if the <tt>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()
isSendBufferSizeChanged
in class AbstractDatagramSessionConfig
true</tt> if and only if the <tt>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()
isTrafficClassChanged
in class AbstractDatagramSessionConfig
true</tt> if and only if the <tt>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.Copyright © 2004–2024 Apache MINA Project. All rights reserved.