public class DatagramConnectorDelegate extends BaseIoConnector
IoConnector for datagram transport (UDP/IP).| Constructor and Description |
|---|
DatagramConnectorDelegate(IoConnector wrapper,
java.util.concurrent.Executor executor)
Creates a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
void |
closeSession(org.apache.mina.transport.socket.nio.support.DatagramSessionImpl session)
Requests this processor to close the specified session.
|
ConnectFuture |
connect(java.net.SocketAddress address,
IoHandler handler,
IoServiceConfig config)
Connects to the specified
address. |
ConnectFuture |
connect(java.net.SocketAddress address,
java.net.SocketAddress localAddress,
IoHandler handler,
IoServiceConfig config)
Connects to the specified
address. |
void |
flushSession(org.apache.mina.transport.socket.nio.support.DatagramSessionImpl session)
Requests this processor to flush the write buffer of the specified
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)
Requests this processor to update the traffic mask for the specified
session.
|
connect, connectaddListener, getFilterChain, getFilterChainBuilder, getListeners, getManagedServiceAddresses, getManagedSessions, isManaged, removeListener, setFilterChainBuilderclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddListener, 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)