public interface ChannelAcceptor extends Closeable
| Modifier and Type | Interface and Description |
|---|---|
static interface |
ChannelAcceptor.Listener
Listener for acceping channels asynchronously.
|
| Modifier and Type | Method and Description |
|---|---|
Channel |
accept()
Blocks until a channel is accepted.
|
void |
accept(ChannelAcceptor.Listener listener)
Register a listener which is asynchronously given an accepted channel.
|
Channel |
accept(long timeout,
TimeUnit unit)
Blocks until a channel is accepted.
|
Channel |
accept(Timer timer)
Blocks until a channel is accepted.
|
void |
close()
Prevents new channels from being accepted and closes all accepted
channels.
|
Object |
getLocalAddress() |
Object getLocalAddress()
Channel accept() throws IOException
IOExceptionChannel accept(long timeout, TimeUnit unit) throws IOException
IOExceptionChannel accept(Timer timer) throws IOException
IOExceptionvoid accept(ChannelAcceptor.Listener listener)
void close()
close in interface AutoCloseableclose in interface CloseableCopyright © 2006–2015 Cojen. All rights reserved.