C# Класс Kafka.Client.Producers.Async.AsyncProducer

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

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

Метод Описание
AsyncProducer ( AsyncProducerConfiguration config ) : System

Initializes a new instance of the AsyncProducer class.

AsyncProducer ( AsyncProducerConfiguration config, ICallbackHandler callbackHandler ) : System

Initializes a new instance of the AsyncProducer class.

Dispose ( ) : void

Releases all unmanaged and managed resources

Send ( ProducerRequest request ) : void

Sends request to Kafka server asynchronously

Send ( ProducerRequest request, MessageSent callback ) : void

Sends request to Kafka server asynchronously

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

Constructs request and sent it to Kafka server asynchronously

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

Constructs request and sent it to Kafka server asynchronously

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

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

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

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

Ensures that object was not disposed

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

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

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

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

Initializes a new instance of the AsyncProducer class.
public AsyncProducer ( AsyncProducerConfiguration config, ICallbackHandler callbackHandler ) : System
config AsyncProducerConfiguration /// The producer config. ///
callbackHandler ICallbackHandler /// The callback invoked when a request is finished being sent. ///
Результат System

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

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

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

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

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

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

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

Sends request to Kafka server asynchronously
public Send ( ProducerRequest request, MessageSent callback ) : void
request Kafka.Client.Requests.ProducerRequest /// The request. ///
callback MessageSent /// The callback invoked when a request is finished being sent. ///
Результат void

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

Constructs request and sent it to Kafka server asynchronously
public Send ( string topic, int partition, IEnumerable messages ) : void
topic string /// The topic. ///
partition int /// The partition. ///
messages IEnumerable /// The list of messages to sent. ///
Результат void

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

Constructs request and sent it to Kafka server asynchronously
public Send ( string topic, int partition, IEnumerable messages, MessageSent callback ) : void
topic string /// The topic. ///
partition int /// The partition. ///
messages IEnumerable /// The list of messages to sent. ///
callback MessageSent /// The callback invoked when a request is finished being sent. ///
Результат void