C# Класс Kafka.Client.Request.OffsetRequest

Constructs a request to send to Kafka.
Наследование: AbstractRequest
Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
EarliestTime long
LatestTime long

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

Метод Описание
GetBytes ( ) : byte[]

Converts the request to an array of bytes that is expected by Kafka.

IsValid ( ) : bool

Determines if the request has valid settings.

OffsetRequest ( ) : System

Initializes a new instance of the OffsetRequest class.

OffsetRequest ( string topic, int partition, long time, int maxOffsets ) : System

Initializes a new instance of the OffsetRequest class.

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

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

Converts the request to an array of bytes that is expected by Kafka.
public GetBytes ( ) : byte[]
Результат byte[]

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

Determines if the request has valid settings.
public IsValid ( ) : bool
Результат bool

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

Initializes a new instance of the OffsetRequest class.
public OffsetRequest ( ) : System
Результат System

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

Initializes a new instance of the OffsetRequest class.
public OffsetRequest ( string topic, int partition, long time, int maxOffsets ) : System
topic string The topic to publish to.
partition int The partition to publish to.
time long The time from which to request offsets.
maxOffsets int The maximum amount of offsets to return.
Результат System

Описание свойств

EarliestTime публичное статическое свойство

The earliest time constant.
public static long EarliestTime
Результат long

LatestTime публичное статическое свойство

The latest time constant.
public static long LatestTime
Результат long