Class DatagramAcceptor
java.lang.Object
org.apache.mina.common.support.DelegatedIoAcceptor
org.apache.mina.transport.socket.nio.DatagramAcceptor
- All Implemented Interfaces:
IoAcceptor,IoService
IoAcceptor for datagram transport (UDP/IP).-
Field Summary
Fields inherited from class org.apache.mina.common.support.DelegatedIoAcceptor
delegate -
Constructor Summary
ConstructorsConstructorDescriptionCreates a new instance using a NewThreadExecutorDatagramAcceptor(Executor executor) Creates a new instance. -
Method Summary
Modifier and TypeMethodDescriptionReturns the default configuration which is used when you didn't specify any configuration.voidsetDefaultConfig(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
-
Constructor Details
-
DatagramAcceptor
public DatagramAcceptor()Creates a new instance using a NewThreadExecutor -
DatagramAcceptor
Creates a new instance.- Parameters:
executor- Executor to use for launching threads
-
-
Method Details
-
getDefaultConfig
Description copied from interface:IoServiceReturns the default configuration which is used when you didn't specify any configuration.- Specified by:
getDefaultConfigin interfaceIoService- Overrides:
getDefaultConfigin classDelegatedIoAcceptor
-
setDefaultConfig
Sets the config this acceptor will use by default.- Parameters:
defaultConfig- the default config.- Throws:
NullPointerException- if the specified value isnull.
-