org.springframework.kafka.core.KafkaAdmin Java Examples
The following examples show how to use
org.springframework.kafka.core.KafkaAdmin.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: SpringBootDecisionTracingConfiguration.java From kogito-runtimes with Apache License 2.0 | 5 votes |
/** * Defining a {@link KafkaAdmin} bean allows to automatically add topic to the broker via {@link NewTopic} beans */ @Bean public KafkaAdmin kafkaAdmin() { Map<String, Object> configs = new HashMap<>(); configs.put(AdminClientConfig.BOOTSTRAP_SERVERS_CONFIG, kafkaBootstrapAddress); return new KafkaAdmin(configs); }
Example #2
Source File: KafkaProducerConfiguration.java From integration-patterns with MIT License | 5 votes |
@Bean public KafkaAdmin admin() { Map<String, Object> configs = new HashMap<>(); configs.put(AdminClientConfig.BOOTSTRAP_SERVERS_CONFIG, servers); return new KafkaAdmin(configs); }
Example #3
Source File: DunwuKafkaConfig.java From spring-boot-tutorial with Creative Commons Attribution Share Alike 4.0 International | 4 votes |
@Bean public KafkaAdmin kafkaAdmin() { Map<String, Object> map = new HashMap<>(1); map.put(AdminClientConfig.BOOTSTRAP_SERVERS_CONFIG, kafkaBootstrapServers); return new KafkaAdmin(map); }
Example #4
Source File: KafkaTopicConfig.java From tutorials with MIT License | 4 votes |
@Bean public KafkaAdmin kafkaAdmin() { Map<String, Object> configs = new HashMap<>(); configs.put(AdminClientConfig.BOOTSTRAP_SERVERS_CONFIG, bootstrapAddress); return new KafkaAdmin(configs); }