public interface ChannelConnector extends Closeable
| Modifier and Type | Interface and Description |
|---|---|
static interface |
ChannelConnector.Listener
Listener for acceping channels asynchronously.
|
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Prevents new channels from being connected and closes all connected
channels.
|
Channel |
connect()
Returns a new channel, possibly blocking until it has been established.
|
void |
connect(ChannelConnector.Listener listener)
Register a listener which is asynchronously given a connected channel.
|
Channel |
connect(long timeout,
TimeUnit unit)
Returns a new channel, possibly blocking until it has been established.
|
Channel |
connect(Timer timer)
Returns a new channel, possibly blocking until it has been established.
|
Object |
getLocalAddress() |
Object |
getRemoteAddress() |
Object getRemoteAddress()
Object getLocalAddress()
Channel connect() throws IOException
IOExceptionChannel connect(long timeout, TimeUnit unit) throws IOException
IOExceptionChannel connect(Timer timer) throws IOException
IOExceptionvoid connect(ChannelConnector.Listener listener)
void close()
close in interface AutoCloseableclose in interface CloseableCopyright © 2006–2015 Cojen. All rights reserved.