public class NioUdpClient extends AbstractUdpClient
AbstractIoService.ServiceStateconfig, ioHandlerExecutor| Constructor and Description |
|---|
NioUdpClient()
Create a new instance of NioUdpClient
|
NioUdpClient(IoHandlerExecutor ioHandlerExecutor)
Create a new instance of NioUdpClient
|
| Modifier and Type | Method and Description |
|---|---|
IoFuture<IoSession> |
connect(SocketAddress remoteAddress)
Connects to the specified remote address.
|
IoFuture<IoSession> |
connect(SocketAddress remoteAddress,
SocketAddress localAddress)
Connects to the specified remote address binding to the specified local address.
|
getSessionConfigfireServiceActivated, fireServiceInactivated, getFilters, getIoHandler, getIoHandlerExecutor, getManagedSessions, initState, isActive, isCreated, isDisposed, isDisposing, isSuspended, setActive, setCreated, setDisposed, setDisposing, setFilters, setIoHandler, setSuspendedpublic NioUdpClient()
public NioUdpClient(IoHandlerExecutor ioHandlerExecutor)
public IoFuture<IoSession> connect(SocketAddress remoteAddress)
remoteAddress - Remote SocketAddress to connectIoFuture instance which is completed when the connection attempt initiated by this call
succeeds or fails.public IoFuture<IoSession> connect(SocketAddress remoteAddress, SocketAddress localAddress)
connect in class AbstractUdpClientremoteAddress - Remote SocketAddress to connectlocalAddress - Local SocketAddress to use while initiating connection to remote
SocketAddressIoFuture instance which is completed when the connection attempt initiated by this call
succeeds or fails.Copyright © 2009–2013 Apache MINA Project. All rights reserved.