Destination destination = ...; FuturePromise<Connection> futureConnection = new FuturePromise<>(); destination.newConnection(futureConnection); Connection connection = futureConnection.get(5, TimeUnit.SECONDS);@param promise the promise of a new, unpooled, {@link Connection}
Creates a new {@link Connection} with the given parameters
@param connector The {@link Connector} creating this connection @param endPoint the {@link EndPoint} associated with the connection @return a new {@link Connection}Connection
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|