Class ConfluentAdminClientFactory
- Namespace
- Silverback.Messaging.Broker.Kafka
- Assembly
- Silverback.Integration.Kafka.dll
Wraps the Confluent.Kafka.AdminClientBuilder.
public class ConfluentAdminClientFactory : ConfluentAdminClientFactoryBase, IConfluentAdminClientFactory
- Inheritance
-
ConfluentAdminClientFactory
- Implements
- Inherited Members
Constructors
ConfluentAdminClientFactory(IProducerCollection, IConsumerCollection, ISilverbackLogger<ConfluentAdminClientFactory>)
Initializes a new instance of the ConfluentAdminClientFactory class.
public ConfluentAdminClientFactory(IProducerCollection producers, IConsumerCollection consumers, ISilverbackLogger<ConfluentAdminClientFactory> logger)
Parameters
producersIProducerCollectionThe IProducerCollection.
consumersIConsumerCollectionThe IConsumerCollection.
loggerISilverbackLogger<ConfluentAdminClientFactory>The ISilverbackLogger.
Methods
GetClient(AdminClientConfig)
Returns an Confluent.Kafka.IAdminClient instance for the specified configuration.
public override IAdminClient GetClient(AdminClientConfig config)
Parameters
configAdminClientConfigThe client configuration.
Returns
- IAdminClient
The Confluent.Kafka.IAdminClient.