Class AdminClientFactory
java.lang.Object
io.micronaut.configuration.kafka.admin.AdminClientFactory
@Factory
@Requires(beans=KafkaDefaultConfiguration.class) @Requires(property="kafka.admin.enabled",notEquals="false",defaultValue="true")
public class AdminClientFactory
extends Object
Creates the Kafka
AdminClient.
Micronaut Kafka looks up the admin client as an Admin bean,
for topic creation, the health indicator and consumer group deletion. To use another Admin
implementation, such as the Oracle OKafka admin client, replace this bean or set
kafka.admin.enabled=false. Registering a second Admin bean next to this one makes
those lookups fail with a NonUniqueBeanException.
- Since:
- 1.0
- Author:
- Graeme Rocher
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
AdminClientFactory
public AdminClientFactory()
-