Class DatagramConnectorConfig
java.lang.Object
org.apache.mina.common.support.BaseIoServiceConfig
org.apache.mina.common.support.BaseIoConnectorConfig
org.apache.mina.transport.socket.nio.DatagramConnectorConfig
- All Implemented Interfaces:
Cloneable,IoConnectorConfig,IoServiceConfig,DatagramServiceConfig
An
IoConnectorConfig for DatagramConnector.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()Returns a deep clone of this configuration.Resturns the default configuration of the newIoSessions.Returns theIoSessionRecyclerfor this service.voidsetSessionRecycler(IoSessionRecycler sessionRecycler) Sets theIoSessionRecyclerfor this service.Methods inherited from class org.apache.mina.common.support.BaseIoConnectorConfig
getConnectTimeout, getConnectTimeoutMillis, setConnectTimeoutMethods inherited from class org.apache.mina.common.support.BaseIoServiceConfig
getFilterChain, getFilterChainBuilder, getThreadModel, setFilterChainBuilder, setThreadModelMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.mina.common.IoServiceConfig
getFilterChain, getFilterChainBuilder, getThreadModel, setFilterChainBuilder, setThreadModel
-
Constructor Details
-
DatagramConnectorConfig
public DatagramConnectorConfig()Creates a new instance.- Throws:
RuntimeIOException- if failed to get the default configuration
-
-
Method Details
-
getSessionConfig
Description copied from interface:IoServiceConfigResturns the default configuration of the newIoSessions.- Specified by:
getSessionConfigin interfaceDatagramServiceConfig- Specified by:
getSessionConfigin interfaceIoServiceConfig
-
getSessionRecycler
Description copied from interface:DatagramServiceConfigReturns theIoSessionRecyclerfor this service.- Specified by:
getSessionRecyclerin interfaceDatagramServiceConfig
-
setSessionRecycler
Description copied from interface:DatagramServiceConfigSets theIoSessionRecyclerfor this service.- Specified by:
setSessionRecyclerin interfaceDatagramServiceConfig- Parameters:
sessionRecycler- null to use the default recycler
-
clone
Description copied from interface:IoServiceConfigReturns a deep clone of this configuration.- Specified by:
clonein interfaceIoServiceConfig- Overrides:
clonein classBaseIoServiceConfig
-