C# Class Kafka.Client.Consumer

Consumes messages from Kafka.
Afficher le fichier Open project: precog/kafka

Méthodes publiques

Méthode Description
Consume ( MultiFetchRequest request ) : List>

Executes a multi-fetch operation.

Consume ( FetchRequest request ) : List

Consumes messages from Kafka.

Consume ( string topic, int partition, long offset ) : List

Consumes messages from Kafka.

Consume ( string topic, int partition, long offset, int maxSize ) : List

Consumes messages from Kafka.

Consumer ( string server, int port ) : System

Initializes a new instance of the Consumer class.

GetOffsetsBefore ( Kafka.Client.OffsetRequest request ) : IList

Get a list of valid offsets (up to maxSize) before the given time.

GetOffsetsBefore ( string topic, int partition, long time, int maxNumOffsets ) : IList

Get a list of valid offsets (up to maxSize) before the given time.

Method Details

Consume() public méthode

Executes a multi-fetch operation.
public Consume ( MultiFetchRequest request ) : List>
request MultiFetchRequest The request to push to Kafka.
Résultat List>

Consume() public méthode

Consumes messages from Kafka.
public Consume ( FetchRequest request ) : List
request FetchRequest The request to send to Kafka.
Résultat List

Consume() public méthode

Consumes messages from Kafka.
public Consume ( string topic, int partition, long offset ) : List
topic string The topic to consume from.
partition int The partition to consume from.
offset long The offset to start at.
Résultat List

Consume() public méthode

Consumes messages from Kafka.
public Consume ( string topic, int partition, long offset, int maxSize ) : List
topic string The topic to consume from.
partition int The partition to consume from.
offset long The offset to start at.
maxSize int The maximum size.
Résultat List

Consumer() public méthode

Initializes a new instance of the Consumer class.
public Consumer ( string server, int port ) : System
server string The server to connect to.
port int The port to connect to.
Résultat System

GetOffsetsBefore() public méthode

Get a list of valid offsets (up to maxSize) before the given time.
public GetOffsetsBefore ( Kafka.Client.OffsetRequest request ) : IList
request Kafka.Client.OffsetRequest The offset request.
Résultat IList

GetOffsetsBefore() public méthode

Get a list of valid offsets (up to maxSize) before the given time.
public GetOffsetsBefore ( string topic, int partition, long time, int maxNumOffsets ) : IList
topic string The topic to check.
partition int The partition on the topic.
time long time in millisecs (if -1, just get from the latest available)
maxNumOffsets int That maximum number of offsets to return.
Résultat IList