C# Class 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.
Inheritance: ZooKeeperAwareKafkaClientBase, IConsumerConnector
Mostrar archivo Open project: precog/kafka Class Usage Examples

Public Properties

Property Type Description
MaxNRetries int

Public Methods

Method Description
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.

Protected Methods

Method Description
Dispose ( bool disposing ) : void

Private Methods

Method Description
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

Method Details

AutoCommit() public method

public AutoCommit ( ) : void
return void

CommitOffsets() public method

Commits the offsets of all messages consumed so far.
public CommitOffsets ( ) : void
return void

CreateMessageStreams() public method

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 ///
return IList>.IDictionary

Dispose() protected method

protected Dispose ( bool disposing ) : void
disposing bool
return void

ZookeeperConsumerConnector() public method

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 ///
return System

Property Details

MaxNRetries public_oe static_oe property

public static int MaxNRetries
return int