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