Skip to main content
Version: 3.x

ClusterConfiguration constructor

Initializes a new instance of the ClusterConfiguration class.

public ClusterConfiguration(KafkaConfiguration kafka, string name, IEnumerable<string> brokers, 
Func<SecurityInformation> securityInformationHandler,
Action<IDependencyResolver> onStartedHandler, Action<IDependencyResolver> onStoppingHandler,
IEnumerable<TopicConfiguration> topicsToCreateIfNotExist = null)
parameterdescription
kafkaThe kafka configuration
nameThe cluster name
brokersThe list of brokers
securityInformationHandlerThe security information handler
onStartedHandlerThe handler to be executed when the cluster started
onStoppingHandlerThe handler to be executed when the cluster is stopping
topicsToCreateIfNotExistTopics to create on startup if not exists

See Also