Class DefaultNetworkClientCreator
java.lang.Object
io.micronaut.configuration.kafka.health.DefaultNetworkClientCreator
- All Implemented Interfaces:
NetworkClientCreator
Default implementation of
NetworkClientCreator
. Based on KafkaAdminClient
createInternal method.- Since:
- 5.1.0
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescription@NonNull org.apache.kafka.clients.NetworkClient
create
(@NonNull ClusterResourceListener... listeners)
-
Constructor Details
-
DefaultNetworkClientCreator
-
-
Method Details
-
create
@NonNull public @NonNull org.apache.kafka.clients.NetworkClient create(@NonNull @NonNull ClusterResourceListener... listeners) - Specified by:
create
in interfaceNetworkClientCreator
- Parameters:
listeners
- Cluster Resource Listeners- Returns:
- A Kafka Network Client
-