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

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

Méthodes publiques

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

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

AsyncProducer() public méthode

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

AsyncProducer() public méthode

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

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

Send() public méthode

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

Send() public méthode

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

Send() public méthode

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

Send() public méthode

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