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
파일 보기 프로젝트 열기: precog/kafka 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
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