public interface DatagramSessionConfig extends IoSessionConfig
IoSessionConfig
for datagram transport type.Modifier and Type | Method and Description |
---|---|
int |
getReceiveBufferSize() |
int |
getSendBufferSize() |
int |
getTrafficClass() |
boolean |
isBroadcast() |
boolean |
isCloseOnPortUnreachable()
If method returns true, it means session should be closed when a
PortUnreachableException occurs. |
boolean |
isReuseAddress() |
void |
setBroadcast(boolean broadcast) |
void |
setCloseOnPortUnreachable(boolean closeOnPortUnreachable)
Sets if the session should be closed if an
PortUnreachableException
occurs. |
void |
setReceiveBufferSize(int receiveBufferSize) |
void |
setReuseAddress(boolean reuseAddress) |
void |
setSendBufferSize(int sendBufferSize) |
void |
setTrafficClass(int trafficClass) |
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
boolean isBroadcast()
DatagramSocket.getBroadcast()
void setBroadcast(boolean broadcast)
broadcast
- Tells if SO_BROACAST is enabled or notDatagramSocket.setBroadcast(boolean)
boolean isReuseAddress()
DatagramSocket.getReuseAddress()
void setReuseAddress(boolean reuseAddress)
reuseAddress
- Tells if SO_REUSEADDR is enabled or disabledDatagramSocket.setReuseAddress(boolean)
int getReceiveBufferSize()
DatagramSocket.getReceiveBufferSize()
void setReceiveBufferSize(int receiveBufferSize)
receiveBufferSize
- The size of the receive bufferDatagramSocket.setReceiveBufferSize(int)
int getSendBufferSize()
DatagramSocket.getSendBufferSize()
void setSendBufferSize(int sendBufferSize)
sendBufferSize
- The size of the send bufferDatagramSocket.setSendBufferSize(int)
int getTrafficClass()
DatagramSocket.getTrafficClass()
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)
boolean isCloseOnPortUnreachable()
PortUnreachableException
occurs.void setCloseOnPortUnreachable(boolean closeOnPortUnreachable)
PortUnreachableException
occurs.closeOnPortUnreachable
- true if we should close if the port is unreachableCopyright © 2004–2016 Apache MINA Project. All rights reserved.