C# Class Kafka.Client.Consumers.Fetcher

Background thread that fetches data from a set of servers
Inheritance: IDisposable
Exibir arquivo Open project: precog/kafka Class Usage Examples

Public Methods

Method Description
Dispose ( ) : void
Fetcher ( Kafka.Client.Cfg.ConsumerConfiguration config, IZooKeeperClient zkClient ) : System

Initializes a new instance of the Fetcher class.

InitConnections ( IEnumerable topicInfos, Cluster cluster, IEnumerable queuesToBeCleared ) : void

Opens connections to brokers.

Private Methods

Method Description
EnsuresNotDisposed ( ) : void

Ensures that object was not disposed

Shutdown ( ) : void

Shuts down all fetch threads

Method Details

Dispose() public method

public Dispose ( ) : void
return void

Fetcher() public method

Initializes a new instance of the Fetcher class.
public Fetcher ( Kafka.Client.Cfg.ConsumerConfiguration config, IZooKeeperClient zkClient ) : System
config Kafka.Client.Cfg.ConsumerConfiguration /// The consumer configuration. ///
zkClient IZooKeeperClient /// The wrapper above ZooKeeper client. ///
return System

InitConnections() public method

Opens connections to brokers.
public InitConnections ( IEnumerable topicInfos, Cluster cluster, IEnumerable queuesToBeCleared ) : void
topicInfos IEnumerable /// The topic infos. ///
cluster Kafka.Client.Cluster.Cluster /// The cluster. ///
queuesToBeCleared IEnumerable /// The queues to be cleared. ///
return void