public abstract class AbstractUdpClient extends AbstractIoClient
AbstractIoService.ServiceState
config, 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
IoSession s created by this service. |
fireServiceActivated, fireServiceInactivated, getFilters, getIoHandler, getIoHandlerExecutor, getManagedSessions, initState, isActive, isCreated, isDisposed, isDisposing, isSuspended, setActive, setCreated, setDisposed, setDisposing, setFilters, setIoHandler, setSuspended
protected 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
SocketAddress
IoFuture
instance which is completed when the connection attempt initiated by this call
succeeds or fails.public UdpSessionConfig getSessionConfig()
IoSession
s created by this service.IoService
Copyright © 2009–2013 Apache MINA Project. All rights reserved.