public class DatagramAcceptor extends DelegatedIoAcceptor
IoAcceptor
for datagram transport (UDP/IP).delegate
Constructor and Description |
---|
DatagramAcceptor()
Creates a new instance using a NewThreadExecutor
|
DatagramAcceptor(Executor executor)
Creates a new instance.
|
Modifier and Type | Method and 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.
|
addListener, bind, bind, getFilterChain, getFilterChainBuilder, getManagedServiceAddresses, getManagedSessions, init, isManaged, newSession, removeListener, setFilterChainBuilder, unbind, unbindAll
public DatagramAcceptor()
public DatagramAcceptor(Executor executor)
executor
- Executor to use for launching threadspublic DatagramAcceptorConfig getDefaultConfig()
IoService
getDefaultConfig
in interface IoService
getDefaultConfig
in class DelegatedIoAcceptor
public void setDefaultConfig(DatagramAcceptorConfig defaultConfig)
defaultConfig
- the default config.NullPointerException
- if the specified value is null
.Copyright © 2004–2014 Apache MINA Project. All rights reserved.