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

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

Méthodes publiques

Méthode 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.

Méthodes protégées

Méthode Description
Dispose ( bool disposing ) : void

Private Methods

Méthode Description
EnsuresNotDisposed ( ) : void

Ensures that object was not disposed

Method Details

Dispose() public méthode

Releases all unmanaged and managed resources
public Dispose ( ) : void
Résultat void

Dispose() protected méthode

protected Dispose ( bool disposing ) : void
disposing bool
Résultat void

MultiSend() public méthode

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

Send() public méthode

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

Send() public méthode

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. ///
Résultat void

SyncProducer() public méthode

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