public Connection call() throws IOException {
log.info("{} connection {} to {}", recovery ? "Recovering" : "Creating", connectionName,
options.getAddresses());
ConnectionFactory cxnFactory = options.getConnectionFactory();
Connection connection =
cxnFactory.newConnection(consumerThreadPool, options.getAddresses());
final String amqpAddress =
String.format("%s://%s:%s/%s", cxnFactory.isSSL() ? "amqps" : "amqp",
connection.getAddress().getHostAddress(), connection.getPort(),
"/".equals(cxnFactory.getVirtualHost()) ? "" : cxnFactory.getVirtualHost());
log.info("{} connection {} to {}", recovery ? "Recovered" : "Created", connectionName,