C# Class Kafka.Client.Producers.Async.AsyncProducer

Sends messages encapsulated in request to Kafka server asynchronously
Inheritance: IAsyncProducer
Exibir arquivo Open project: precog/kafka Class Usage Examples

Public Methods

Method Description
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

Protected Methods

Method Description
Dispose ( bool disposing ) : void

Private Methods

Method Description
EnsuresNotDisposed ( ) : void

Ensures that object was not disposed

Method Details

AsyncProducer() public method

Initializes a new instance of the AsyncProducer class.
public AsyncProducer ( AsyncProducerConfiguration config ) : System
config AsyncProducerConfiguration /// The producer config. ///
return System

AsyncProducer() public method

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. ///
return System

Dispose() public method

Releases all unmanaged and managed resources
public Dispose ( ) : void
return void

Dispose() protected method

protected Dispose ( bool disposing ) : void
disposing bool
return void

Send() public method

Sends request to Kafka server asynchronously
public Send ( ProducerRequest request ) : void
request Kafka.Client.Requests.ProducerRequest /// The request. ///
return void

Send() public method

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. ///
return void

Send() public method

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. ///
return void

Send() public method

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. ///
return void