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

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

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

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

Gets the bytes matching the expected Kafka structure.

IsValid ( ) : bool

Determines if the request has valid settings.

ProducerRequest ( ) : System

Initializes a new instance of the ProducerRequest class.

ProducerRequest ( string topic, int partition, IList messages ) : System

Initializes a new instance of the ProducerRequest class.

Приватные методы

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

Gets the bytes representing the request which is used when generating a multi-request.

The GetBytes method is used for sending a single RequestType.Produce. It prefixes this byte array with the request type and the number of messages. This method is used to supply the MultiProducerRequest with the contents for its message.

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

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

Gets the bytes matching the expected Kafka structure.
public GetBytes ( ) : byte[]
Результат byte[]

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

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

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

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

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

Initializes a new instance of the ProducerRequest class.
public ProducerRequest ( string topic, int partition, IList messages ) : System
topic string The topic to publish to.
partition int The partition to publish to.
messages IList The list of messages to send.
Результат System