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
The implementation for the
IoSessionConfig related to APR UDP socket.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintintintbooleanbooleanvoidsetBroadcast(boolean broadcast) voidsetReceiveBufferSize(int size) voidsetReuseAddress(boolean on) voidsetSendBufferSize(int size) voidsetTrafficClass(int tc) Methods inherited from class AbstractDatagramSessionConfig
isBroadcastChanged, isCloseOnPortUnreachable, isReceiveBufferSizeChanged, isReuseAddressChanged, isSendBufferSizeChanged, isTrafficClassChanged, setAll, setCloseOnPortUnreachableMethods inherited from class 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, setWriteTimeoutMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface 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
-
Constructor Details
-
SessionConfigImpl
private SessionConfigImpl()
-
-
Method Details
-
isReuseAddress
public boolean isReuseAddress()- Returns:
trueif SO_REUSEADDR is enabled.- See Also:
-
setReuseAddress
public void setReuseAddress(boolean on) - Parameters:
on- Tells if SO_REUSEADDR is enabled or disabled- See Also:
-
getTrafficClass
public int getTrafficClass()- Returns:
- the traffic class
- See Also:
-
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:
-
getSendBufferSize
public int getSendBufferSize()- Returns:
- the size of the send buffer
- See Also:
-
setSendBufferSize
public void setSendBufferSize(int size) - Parameters:
size- The size of the send buffer- See Also:
-
getReceiveBufferSize
public int getReceiveBufferSize()- Returns:
- the size of the receive buffer
- See Also:
-
setReceiveBufferSize
public void setReceiveBufferSize(int size) - Parameters:
size- The size of the receive buffer- See Also:
-
isBroadcast
public boolean isBroadcast()- Returns:
trueif SO_BROADCAST is enabled.- See Also:
-
setBroadcast
public void setBroadcast(boolean broadcast) - Parameters:
broadcast- Tells if SO_BROACAST is enabled or not- See Also:
-