Class DefaultNetworkClientCreator

java.lang.Object
io.micronaut.configuration.kafka.health.DefaultNetworkClientCreator
All Implemented Interfaces:
NetworkClientCreator

@Singleton public class DefaultNetworkClientCreator extends Object implements NetworkClientCreator
Default implementation of NetworkClientCreator. Based on KafkaAdminClient createInternal method.
Since:
5.1.0
  • Constructor Details

  • Method Details

    • create

      @NonNull public @NonNull org.apache.kafka.clients.NetworkClient create(@NonNull @NonNull ClusterResourceListener... listeners)
      Specified by:
      create in interface NetworkClientCreator
      Parameters:
      listeners - Cluster Resource Listeners
      Returns:
      A Kafka Network Client