Class DatagramAcceptorConfig
java.lang.Object
org.apache.mina.common.support.BaseIoServiceConfig
org.apache.mina.common.support.BaseIoAcceptorConfig
org.apache.mina.transport.socket.nio.DatagramAcceptorConfig
- All Implemented Interfaces:
Cloneable
,IoAcceptorConfig
,IoServiceConfig
,DatagramServiceConfig
An
IoAcceptorConfig
for DatagramAcceptor
.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()
Returns a deep clone of this configuration.Resturns the default configuration of the newIoSession
s.Returns theIoSessionRecycler
for this service.void
setSessionRecycler
(IoSessionRecycler sessionRecycler) Sets theIoSessionRecycler
for this service.Methods inherited from class org.apache.mina.common.support.BaseIoAcceptorConfig
isDisconnectOnUnbind, setDisconnectOnUnbind
Methods inherited from class org.apache.mina.common.support.BaseIoServiceConfig
getFilterChain, getFilterChainBuilder, getThreadModel, setFilterChainBuilder, setThreadModel
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.apache.mina.common.IoServiceConfig
getFilterChain, getFilterChainBuilder, getThreadModel, setFilterChainBuilder, setThreadModel
-
Constructor Details
-
DatagramAcceptorConfig
public DatagramAcceptorConfig()Creates a new instance.- Throws:
RuntimeIOException
- if failed to get the default configuration
-
-
Method Details
-
getSessionConfig
Description copied from interface:IoServiceConfig
Resturns the default configuration of the newIoSession
s.- Specified by:
getSessionConfig
in interfaceDatagramServiceConfig
- Specified by:
getSessionConfig
in interfaceIoServiceConfig
-
getSessionRecycler
Description copied from interface:DatagramServiceConfig
Returns theIoSessionRecycler
for this service.- Specified by:
getSessionRecycler
in interfaceDatagramServiceConfig
-
setSessionRecycler
Description copied from interface:DatagramServiceConfig
Sets theIoSessionRecycler
for this service.- Specified by:
setSessionRecycler
in interfaceDatagramServiceConfig
- Parameters:
sessionRecycler
- null to use the default recycler
-
clone
Description copied from interface:IoServiceConfig
Returns a deep clone of this configuration.- Specified by:
clone
in interfaceIoServiceConfig
- Overrides:
clone
in classBaseIoServiceConfig
-