public class BasicChannelBrokerConnector extends Object implements ChannelBrokerConnector
BasicChannelBrokerAcceptor to adapt a ChannelConnector
into a ChannelBrokerConnector.ChannelBrokerConnector.Listener| Constructor and Description |
|---|
BasicChannelBrokerConnector(IOExecutor executor,
ChannelConnector connector) |
| 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() |
public BasicChannelBrokerConnector(IOExecutor executor, ChannelConnector connector)
public Object getRemoteAddress()
getRemoteAddress in interface ChannelBrokerConnectorpublic Object getLocalAddress()
getLocalAddress in interface ChannelBrokerConnectorpublic ChannelBroker connect() throws IOException
ChannelBrokerConnectorconnect in interface ChannelBrokerConnectorIOExceptionpublic ChannelBroker connect(long timeout, TimeUnit unit) throws IOException
ChannelBrokerConnectorconnect in interface ChannelBrokerConnectorIOExceptionpublic ChannelBroker connect(Timer timer) throws IOException
ChannelBrokerConnectorconnect in interface ChannelBrokerConnectorIOExceptionpublic void connect(ChannelBrokerConnector.Listener listener)
ChannelBrokerConnectorconnect in interface ChannelBrokerConnectorpublic void close()
ChannelBrokerConnectorclose in interface Closeableclose in interface AutoCloseableclose in interface ChannelBrokerConnectorCopyright © 2006–2015 Cojen. All rights reserved.