public class DatagramConnectorDelegate extends BaseIoConnector
IoConnector
for datagram transport (UDP/IP).构造器和说明 |
---|
DatagramConnectorDelegate(IoConnector wrapper,
java.util.concurrent.Executor executor)
Creates a new instance.
|
限定符和类型 | 方法和说明 |
---|---|
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, connect
addListener, getFilterChain, getFilterChainBuilder, getListeners, getManagedServiceAddresses, getManagedSessions, isManaged, removeListener, setFilterChainBuilder
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addListener, getFilterChain, getFilterChainBuilder, getManagedServiceAddresses, getManagedSessions, isManaged, removeListener, setFilterChainBuilder
public DatagramConnectorDelegate(IoConnector wrapper, java.util.concurrent.Executor executor)
public ConnectFuture connect(java.net.SocketAddress address, IoHandler handler, IoServiceConfig config)
IoConnector
address
. If communication starts
successfully, events are fired to the specified
handler
.connect
在接口中 IoConnector
config
- 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)
IoConnector
address
. If communication starts
successfully, events are fired to the specified
handler
.connect
在接口中 IoConnector
config
- the configurationConnectFuture
that will tell the result of the connection attemptpublic DatagramConnectorConfig getDefaultConfig()
IoService
getDefaultConfig
在接口中 IoService
public 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)