C# Class Kafka.Client.Consumers.Fetcher

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

Méthodes publiques

Méthode 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

Méthode Description
EnsuresNotDisposed ( ) : void

Ensures that object was not disposed

Shutdown ( ) : void

Shuts down all fetch threads

Method Details

Dispose() public méthode

public Dispose ( ) : void
Résultat void

Fetcher() public méthode

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. ///
Résultat System

InitConnections() public méthode

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. ///
Résultat void