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
IoAcceptorfor 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 DatagramAcceptorConfiggetDefaultConfig()Returns 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
-
-
-
-
Method Detail
-
getDefaultConfig
public DatagramAcceptorConfig 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
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.
-
-