Search in sources :

Example 1 with KafkaAdminClientConfigProperties

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;
}
Also used : KafkaAdminClientConfigProperties(org.eclipse.hono.client.kafka.KafkaAdminClientConfigProperties)

Aggregations

KafkaAdminClientConfigProperties (org.eclipse.hono.client.kafka.KafkaAdminClientConfigProperties)1