Class AprDatagramSession.SessionConfigImpl
- java.lang.Object
-
- org.apache.mina.core.session.AbstractIoSessionConfig
-
- org.apache.mina.transport.socket.AbstractDatagramSessionConfig
-
- org.apache.mina.transport.socket.apr.AprDatagramSession.SessionConfigImpl
-
- All Implemented Interfaces:
IoSessionConfig,DatagramSessionConfig
- Enclosing class:
- AprDatagramSession
private class AprDatagramSession.SessionConfigImpl extends AbstractDatagramSessionConfig
The implementation for theIoSessionConfigrelated to APR UDP socket.
-
-
Constructor Summary
Constructors Modifier Constructor Description privateSessionConfigImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetReceiveBufferSize()intgetSendBufferSize()intgetTrafficClass()booleanisBroadcast()booleanisReuseAddress()voidsetBroadcast(boolean broadcast)voidsetReceiveBufferSize(int size)voidsetReuseAddress(boolean on)voidsetSendBufferSize(int size)voidsetTrafficClass(int tc)-
Methods inherited from class org.apache.mina.transport.socket.AbstractDatagramSessionConfig
isBroadcastChanged, isCloseOnPortUnreachable, isReceiveBufferSizeChanged, isReuseAddressChanged, isSendBufferSizeChanged, isTrafficClassChanged, setAll, setCloseOnPortUnreachable
-
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.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
-
isReuseAddress
public boolean isReuseAddress()
- Returns:
trueif SO_REUSEADDR is enabled.- See Also:
DatagramSocket.getReuseAddress()
-
setReuseAddress
public void setReuseAddress(boolean on)
- Parameters:
on- Tells if SO_REUSEADDR is enabled or disabled- See Also:
DatagramSocket.setReuseAddress(boolean)
-
getTrafficClass
public int getTrafficClass()
- Returns:
- the traffic class
- See Also:
DatagramSocket.getTrafficClass()
-
setTrafficClass
public void setTrafficClass(int tc)
- Parameters:
tc- The traffic class to set, one of IPTOS_LOWCOST (0x02) IPTOS_RELIABILITY (0x04), IPTOS_THROUGHPUT (0x08) or IPTOS_LOWDELAY (0x10)- See Also:
DatagramSocket.setTrafficClass(int)
-
getSendBufferSize
public int getSendBufferSize()
- Returns:
- the size of the send buffer
- See Also:
DatagramSocket.getSendBufferSize()
-
setSendBufferSize
public void setSendBufferSize(int size)
- Parameters:
size- The size of the send buffer- See Also:
DatagramSocket.setSendBufferSize(int)
-
getReceiveBufferSize
public int getReceiveBufferSize()
- Returns:
- the size of the receive buffer
- See Also:
DatagramSocket.getReceiveBufferSize()
-
setReceiveBufferSize
public void setReceiveBufferSize(int size)
- Parameters:
size- The size of the receive buffer- See Also:
DatagramSocket.setReceiveBufferSize(int)
-
isBroadcast
public boolean isBroadcast()
- Returns:
trueif SO_BROADCAST is enabled.- See Also:
DatagramSocket.getBroadcast()
-
setBroadcast
public void setBroadcast(boolean broadcast)
- Parameters:
broadcast- Tells if SO_BROACAST is enabled or not- See Also:
DatagramSocket.setBroadcast(boolean)
-
-