C# Класс Kafka.Client.Producers.Sync.SyncProducer

Sends messages encapsulated in request to Kafka server synchronously
Наследование: ISyncProducer
Показать файл Открыть проект Примеры использования класса

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

Метод Описание
Dispose ( ) : void

Releases all unmanaged and managed resources

MultiSend ( IEnumerable requests ) : void

Sends the data to a multiple topics on Kafka server synchronously

Send ( ProducerRequest request ) : void

Sends request to Kafka server synchronously

Send ( string topic, int partition, IEnumerable messages ) : void

Constructs producer request and sends it to given broker partition synchronously

SyncProducer ( SyncProducerConfiguration config ) : System

Initializes a new instance of the SyncProducer class.

Защищенные методы

Метод Описание
Dispose ( bool disposing ) : void

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

Метод Описание
EnsuresNotDisposed ( ) : void

Ensures that object was not disposed

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

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

Releases all unmanaged and managed resources
public Dispose ( ) : void
Результат void

Dispose() защищенный Метод

protected Dispose ( bool disposing ) : void
disposing bool
Результат void

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

Sends the data to a multiple topics on Kafka server synchronously
public MultiSend ( IEnumerable requests ) : void
requests IEnumerable /// The requests. ///
Результат void

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

Sends request to Kafka server synchronously
public Send ( ProducerRequest request ) : void
request ProducerRequest /// The request. ///
Результат void

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

Constructs producer request and sends it to given broker partition synchronously
public Send ( string topic, int partition, IEnumerable messages ) : void
topic string /// The topic. ///
partition int /// The partition. ///
messages IEnumerable /// The list of messages messages. ///
Результат void

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

Initializes a new instance of the SyncProducer class.
public SyncProducer ( SyncProducerConfiguration config ) : System
config SyncProducerConfiguration /// The producer config. ///
Результат System