public CloseConnectionListener(ConnectionProxy connection, CountDownLatch latch) { this.connection = connection.getTargetConnection(); this.latch = latch; }
private void putConnectionName(Properties props, ConnectionProxy connection, String keySuffix) { Connection targetConnection = connection.getTargetConnection(); // NOSONAR (close()) if (targetConnection != null) { com.rabbitmq.client.Connection delegate = targetConnection.getDelegate(); if (delegate != null) { String name = delegate.getClientProvidedName(); if (name != null) { props.put("connectionName" + keySuffix, name); } } } }
private void putConnectionName(Properties props, ConnectionProxy connection, String keySuffix) { Connection targetConnection = connection.getTargetConnection(); // NOSONAR (close()) if (targetConnection != null) { com.rabbitmq.client.Connection delegate = targetConnection.getDelegate(); if (delegate != null) { String name = delegate.getClientProvidedName(); if (name != null) { props.put("connectionName" + keySuffix, name); } } } }