C# Class Kafka.Client.Producers.Sync.SyncProducer

Sends messages encapsulated in request to Kafka server synchronously
Inheritance: ISyncProducer
Datei anzeigen Open project: precog/kafka Class Usage Examples

Public Methods

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

Protected Methods

Method Description
Dispose ( bool disposing ) : void

Private Methods

Method Description
EnsuresNotDisposed ( ) : void

Ensures that object was not disposed

Method Details

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

MultiSend() public method

Sends the data to a multiple topics on Kafka server synchronously
public MultiSend ( IEnumerable requests ) : void
requests IEnumerable /// The requests. ///
return void

Send() public method

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

Send() public method

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

SyncProducer() public method

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