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