C# Class KafkaNet.MetadataQueries

This class provides a set of common queries that are useful for both the Consumer and Producer classes.
Inheritance: IMetadataQueries
Afficher le fichier Open project: gigya/KafkaNetClient Class Usage Examples

Méthodes publiques

Méthode Description
Dispose ( ) : void
GetTopicFromCache ( string topic ) : KafkaNet.Protocol.Topic

Get metadata on the given topic.

GetTopicOffsetAsync ( string topic, int maxOffsets = 2, int time = -1 ) : Task>

Get offsets for each partition from a given topic.

MetadataQueries ( IBrokerRouter brokerRouter ) : KafkaNet.Protocol

Method Details

Dispose() public méthode

public Dispose ( ) : void
Résultat void

GetTopicFromCache() public méthode

Get metadata on the given topic.
public GetTopicFromCache ( string topic ) : KafkaNet.Protocol.Topic
topic string The metadata on the requested topic.
Résultat KafkaNet.Protocol.Topic

GetTopicOffsetAsync() public méthode

Get offsets for each partition from a given topic.
public GetTopicOffsetAsync ( string topic, int maxOffsets = 2, int time = -1 ) : Task>
topic string Name of the topic to get offset information from.
maxOffsets int
time int
Résultat Task>

MetadataQueries() public méthode

public MetadataQueries ( IBrokerRouter brokerRouter ) : KafkaNet.Protocol
brokerRouter IBrokerRouter
Résultat KafkaNet.Protocol