C# Класс KafkaNet.MetadataQueries

This class provides a set of common queries that are useful for both the Consumer and Producer classes.
Наследование: IMetadataQueries
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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

Описание методов

Dispose() публичный Метод

public Dispose ( ) : void
Результат void

GetTopicFromCache() публичный Метод

Get metadata on the given topic.
public GetTopicFromCache ( string topic ) : KafkaNet.Protocol.Topic
topic string The metadata on the requested topic.
Результат KafkaNet.Protocol.Topic

GetTopicOffsetAsync() публичный Метод

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
Результат Task>

MetadataQueries() публичный Метод

public MetadataQueries ( IBrokerRouter brokerRouter ) : KafkaNet.Protocol
brokerRouter IBrokerRouter
Результат KafkaNet.Protocol