C# Class Brod.Consumers.Consumer

Inheritance: IDisposable
Afficher le fichier Open project: paralect/brod Class Usage Examples

Méthodes publiques

Méthode Description
Consumer ( String brokerAddress ) : System
Dispose ( ) : void
OpenStream ( String topic ) : ConsumerMessageStream

Open single stream for specified topic

OpenStreams ( String topic, Int32 numberOfStreams ) : List

Open numberOfStreams streams for specified topic. Paritions will be assigned to each stream in such a way, that each stream will consume roughly the same number of partitions.

Method Details

Consumer() public méthode

public Consumer ( String brokerAddress ) : System
brokerAddress String
Résultat System

Dispose() public méthode

public Dispose ( ) : void
Résultat void

OpenStream() public méthode

Open single stream for specified topic
public OpenStream ( String topic ) : ConsumerMessageStream
topic String
Résultat ConsumerMessageStream

OpenStreams() public méthode

Open numberOfStreams streams for specified topic. Paritions will be assigned to each stream in such a way, that each stream will consume roughly the same number of partitions.
public OpenStreams ( String topic, Int32 numberOfStreams ) : List
topic String
numberOfStreams System.Int32
Résultat List