C# Класс Kafka.Client.Consumers.ZookeeperConsumerConnector

The consumer high-level API, that hides the details of brokers from the consumer. It also maintains the state of what has been consumed.
Наследование: ZooKeeperAwareKafkaClientBase, IConsumerConnector
Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
MaxNRetries int

Открытые методы

Метод Описание
AutoCommit ( ) : void
CommitOffsets ( ) : void

Commits the offsets of all messages consumed so far.

CreateMessageStreams ( int>.IDictionary topicCountDict ) : IList>.IDictionary

Creates a list of message streams for each topic.

Explicitly triggers load balancing for this consumer

ZookeeperConsumerConnector ( Kafka.Client.Cfg.ConsumerConfiguration config, bool enableFetcher ) : System

Initializes a new instance of the ZookeeperConsumerConnector class.

Защищенные методы

Метод Описание
Dispose ( bool disposing ) : void

Приватные методы

Метод Описание
ConnectZk ( ) : void
Consume ( int>.IDictionary topicCountDict ) : IList>.IDictionary
CreateFetcher ( ) : void
EnsuresNotDisposed ( ) : void

Ensures that object was not disposed

RegisterConsumerInZk ( ZKGroupDirs dirs, string consumerIdString, TopicCount topicCount ) : void
SendShutdownToAllQueues ( ) : void

Описание методов

AutoCommit() публичный Метод

public AutoCommit ( ) : void
Результат void

CommitOffsets() публичный Метод

Commits the offsets of all messages consumed so far.
public CommitOffsets ( ) : void
Результат void

CreateMessageStreams() публичный Метод

Creates a list of message streams for each topic.
Explicitly triggers load balancing for this consumer
public CreateMessageStreams ( int>.IDictionary topicCountDict ) : IList>.IDictionary
topicCountDict int>.IDictionary /// The map of topic on number of streams ///
Результат IList>.IDictionary

Dispose() защищенный Метод

protected Dispose ( bool disposing ) : void
disposing bool
Результат void

ZookeeperConsumerConnector() публичный Метод

Initializes a new instance of the ZookeeperConsumerConnector class.
public ZookeeperConsumerConnector ( Kafka.Client.Cfg.ConsumerConfiguration config, bool enableFetcher ) : System
config Kafka.Client.Cfg.ConsumerConfiguration /// The consumer configuration. At the minimum, need to specify the group ID /// of the consumer and the ZooKeeper connection string. ///
enableFetcher bool /// Indicates whether fetchers should be enabled ///
Результат System

Описание свойств

MaxNRetries публичное статическое свойство

public static int MaxNRetries
Результат int