C# Class Brod.Consumers.Consumer

Inheritance: IDisposable
Show file Open project: paralect/brod Class Usage Examples

Public Methods

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

public Consumer ( String brokerAddress ) : System
brokerAddress String
return System

Dispose() public method

public Dispose ( ) : void
return void

OpenStream() public method

Open single stream for specified topic
public OpenStream ( String topic ) : ConsumerMessageStream
topic String
return ConsumerMessageStream

OpenStreams() public method

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
return List