IoConnector, IoServicepublic class DatagramConnectorDelegate extends BaseIoConnector
IoConnector for datagram transport (UDP/IP).| Constructor | Description |
|---|---|
DatagramConnectorDelegate(IoConnector wrapper,
java.util.concurrent.Executor executor) |
Creates a new instance.
|
| Modifier and Type | Method | Description |
|---|---|---|
void |
closeSession(org.apache.mina.transport.socket.nio.support.DatagramSessionImpl session) |
|
ConnectFuture |
connect(java.net.SocketAddress address,
java.net.SocketAddress localAddress,
IoHandler handler,
IoServiceConfig config) |
Connects to the specified
address. |
ConnectFuture |
connect(java.net.SocketAddress address,
IoHandler handler,
IoServiceConfig config) |
Connects to the specified
address. |
void |
flushSession(org.apache.mina.transport.socket.nio.support.DatagramSessionImpl session) |
|
DatagramConnectorConfig |
getDefaultConfig() |
Returns the default configuration which is used when you didn't specify
any configuration.
|
void |
setDefaultConfig(DatagramConnectorConfig defaultConfig) |
Sets the config this connector will use by default.
|
void |
updateTrafficMask(org.apache.mina.transport.socket.nio.support.DatagramSessionImpl session) |
connect, connectaddListener, getFilterChain, getFilterChainBuilder, getListeners, getManagedServiceAddresses, getManagedSessions, isManaged, removeListener, setFilterChainBuilderaddListener, getFilterChain, getFilterChainBuilder, getManagedServiceAddresses, getManagedSessions, isManaged, removeListener, setFilterChainBuilderpublic DatagramConnectorDelegate(IoConnector wrapper, java.util.concurrent.Executor executor)
public ConnectFuture connect(java.net.SocketAddress address, IoHandler handler, IoServiceConfig config)
IoConnectoraddress. If communication starts
successfully, events are fired to the specified
handler.connect in interface IoConnectorconfig - the configurationConnectFuture that will tell the result of the connection attemptpublic ConnectFuture connect(java.net.SocketAddress address, java.net.SocketAddress localAddress, IoHandler handler, IoServiceConfig config)
IoConnectoraddress. If communication starts
successfully, events are fired to the specified
handler.connect in interface IoConnectorconfig - the configurationConnectFuture that will tell the result of the connection attemptpublic DatagramConnectorConfig getDefaultConfig()
IoServicegetDefaultConfig in interface IoServicepublic void setDefaultConfig(DatagramConnectorConfig defaultConfig)
defaultConfig - the default config.java.lang.NullPointerException - if the specified value is null.public void closeSession(org.apache.mina.transport.socket.nio.support.DatagramSessionImpl session)
public void flushSession(org.apache.mina.transport.socket.nio.support.DatagramSessionImpl session)
public void updateTrafficMask(org.apache.mina.transport.socket.nio.support.DatagramSessionImpl session)