public abstract class AbstractUdpClient extends AbstractIoClient
AbstractIoService.ServiceStateconfig, ioHandlerExecutor| Modifier | Constructor and Description |
|---|---|
protected |
AbstractUdpClient(IoHandlerExecutor ioHandlerExecutor)
Create an new AbsractUdpClient instance
|
| Modifier and Type | Method and Description |
|---|---|
abstract IoFuture<IoSession> |
connect(SocketAddress remoteAddress,
SocketAddress localAddress)
Connects to the specified remote address binding to the specified local address.
|
UdpSessionConfig |
getSessionConfig()
Returns the default configuration of the new
IoSessions created by this service. |
fireServiceActivated, fireServiceInactivated, getFilters, getIoHandler, getIoHandlerExecutor, getManagedSessions, initState, isActive, isCreated, isDisposed, isDisposing, isSuspended, setActive, setCreated, setDisposed, setDisposing, setFilters, setIoHandler, setSuspendedprotected AbstractUdpClient(IoHandlerExecutor ioHandlerExecutor)
public abstract IoFuture<IoSession> connect(SocketAddress remoteAddress, SocketAddress localAddress)
remoteAddress - 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.public UdpSessionConfig getSessionConfig()
IoSessions created by this service.IoServiceCopyright © 2009–2013 Apache MINA Project. All rights reserved.