Class DatagramAcceptor
- java.lang.Object
-
- org.apache.mina.common.support.DelegatedIoAcceptor
-
- org.apache.mina.transport.socket.nio.DatagramAcceptor
-
- All Implemented Interfaces:
IoAcceptor
,IoService
public class DatagramAcceptor extends DelegatedIoAcceptor
IoAcceptor
for datagram transport (UDP/IP).
-
-
Field Summary
-
Fields inherited from class org.apache.mina.common.support.DelegatedIoAcceptor
delegate
-
-
Constructor Summary
Constructors Constructor Description DatagramAcceptor()
Creates a new instance using a NewThreadExecutorDatagramAcceptor(java.util.concurrent.Executor executor)
Creates a new instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DatagramAcceptorConfig
getDefaultConfig()
Returns the default configuration which is used when you didn't specify any configuration.void
setDefaultConfig(DatagramAcceptorConfig defaultConfig)
Sets the config this acceptor will use by default.-
Methods inherited from class org.apache.mina.common.support.DelegatedIoAcceptor
addListener, bind, bind, getFilterChain, getFilterChainBuilder, getManagedServiceAddresses, getManagedSessions, init, isManaged, newSession, removeListener, setFilterChainBuilder, unbind, unbindAll
-
-
-
-
Method Detail
-
getDefaultConfig
public DatagramAcceptorConfig getDefaultConfig()
Description copied from interface:IoService
Returns the default configuration which is used when you didn't specify any configuration.- Specified by:
getDefaultConfig
in interfaceIoService
- Overrides:
getDefaultConfig
in classDelegatedIoAcceptor
-
setDefaultConfig
public void setDefaultConfig(DatagramAcceptorConfig defaultConfig)
Sets the config this acceptor will use by default.- Parameters:
defaultConfig
- the default config.- Throws:
java.lang.NullPointerException
- if the specified value isnull
.
-
-