|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.littleshoot.mina.common.support.BaseIoService
org.littleshoot.mina.common.support.BaseIoConnector
org.littleshoot.mina.transport.socket.nio.support.DatagramConnectorDelegate
public class DatagramConnectorDelegate
IoConnector for datagram transport (UDP/IP).
| Constructor Summary | |
|---|---|
DatagramConnectorDelegate(IoConnector wrapper,
Executor executor)
Creates a new instance. |
|
| Method Summary | |
|---|---|
void |
closeSession(DatagramSessionImpl session)
Requests this processor to close the specified session. |
ConnectFuture |
connect(SocketAddress address,
IoHandler handler,
IoServiceConfig config)
Connects to the specified address. |
ConnectFuture |
connect(SocketAddress address,
SocketAddress localAddress,
IoHandler handler,
IoServiceConfig config)
Connects to the specified address. |
void |
flushSession(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(DatagramSessionImpl session)
Requests this processor to update the traffic mask for the specified session. |
| Methods inherited from class org.littleshoot.mina.common.support.BaseIoConnector |
|---|
connect, connect |
| Methods inherited from class org.littleshoot.mina.common.support.BaseIoService |
|---|
addListener, getFilterChain, getFilterChainBuilder, getListeners, getManagedServiceAddresses, getManagedSessions, isManaged, removeListener, setFilterChainBuilder |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.littleshoot.mina.common.IoService |
|---|
addListener, getFilterChain, getFilterChainBuilder, getManagedServiceAddresses, getManagedSessions, isManaged, removeListener, setFilterChainBuilder |
| Constructor Detail |
|---|
public DatagramConnectorDelegate(IoConnector wrapper,
Executor executor)
| Method Detail |
|---|
public ConnectFuture connect(SocketAddress address,
IoHandler handler,
IoServiceConfig config)
IoConnectoraddress. If communication starts
successfully, events are fired to the specified
handler.
connect in interface IoConnectorconfig - the configuration
ConnectFuture that will tell the result of the connection attempt
public ConnectFuture connect(SocketAddress address,
SocketAddress localAddress,
IoHandler handler,
IoServiceConfig config)
IoConnectoraddress. If communication starts
successfully, events are fired to the specified
handler.
connect in interface IoConnectorconfig - the configuration
ConnectFuture that will tell the result of the connection attemptpublic DatagramConnectorConfig getDefaultConfig()
IoService
getDefaultConfig in interface IoServicepublic void setDefaultConfig(DatagramConnectorConfig defaultConfig)
defaultConfig - the default config.
NullPointerException - if the specified value is null.public void closeSession(DatagramSessionImpl session)
public void flushSession(DatagramSessionImpl session)
public void updateTrafficMask(DatagramSessionImpl session)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||