C# 클래스 Kafka.Client.Producers.Async.AsyncProducer

Sends messages encapsulated in request to Kafka server asynchronously
상속: IAsyncProducer
파일 보기 프로젝트 열기: precog/kafka 1 사용 예제들

공개 메소드들

메소드 설명
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