use of org.eclipse.hono.client.kafka.KafkaAdminClientConfigProperties in project hono by eclipse.
the class IntegrationTestSupport method getKafkaAdminClientConfig.
/**
* Creates properties for connecting an admin client to Kafka.
*
* @return The properties.
*/
public static KafkaAdminClientConfigProperties getKafkaAdminClientConfig() {
LOGGER.info("Configured to connect to Kafka on {}", IntegrationTestSupport.DOWNSTREAM_BOOTSTRAP_SERVERS);
final KafkaAdminClientConfigProperties adminClientConfig = new KafkaAdminClientConfigProperties();
adminClientConfig.setAdminClientConfig(Map.of(ProducerConfig.BOOTSTRAP_SERVERS_CONFIG, IntegrationTestSupport.DOWNSTREAM_BOOTSTRAP_SERVERS));
return adminClientConfig;
}
Aggregations