Method | Description | |
---|---|---|
Producer ( string server, int port ) : System |
Initializes a new instance of the Producer class.
|
|
Send ( |
Sends a request to Kafka.
|
|
Send ( ProducerRequest request ) : void |
Sends a request to Kafka.
|
|
Send ( string topic, int partition, IList |
Sends a list of messages to Kafka.
|
|
Send ( string topic, int partition, |
Sends a message to Kafka.
|
|
SendAsync ( ProducerRequest request, MessageSent |
Send a request to Kafka asynchronously. If the callback is not specified then the method behaves as a fire-and-forget call with the callback being ignored. By the time this callback is executed, the RequestContext.NetworkStream will already have been closed given an internal call NetworkStream.EndWrite. |
|
SendAsync ( string topic, int partition, IList |
Sends a list of messages to Kafka.
|
public Producer ( string server, int port ) : System | ||
server | string | The server to connect to. |
port | int | The port to connect to. |
return | System |
public Send ( |
||
request | The request to send to Kafka. | |
return | void |
public Send ( ProducerRequest request ) : void | ||
request | ProducerRequest | The request to send to Kafka. |
return | void |
public Send ( string topic, int partition, IList |
||
topic | string | The topic to publish to. |
partition | int | The partition to publish to. |
messages | IList |
The list of messages to send. |
return | void |
public Send ( string topic, int partition, |
||
topic | string | The topic to publish to. |
partition | int | The partition to publish to. |
msg | The message to send. | |
return | void |
public SendAsync ( ProducerRequest request, MessageSent |
||
request | ProducerRequest | The request to send to Kafka. |
callback | MessageSent |
/// A block of code to execute once the request has been sent to Kafka. This value may /// be set to null. /// |
return | void |
public SendAsync ( string topic, int partition, IList |
||
topic | string | The topic to publish to. |
partition | int | The partition to publish to. |
messages | IList |
The list of messages to send. |
callback | MessageSent |
/// A block of code to execute once the request has been sent to Kafka. This value may /// be set to null. /// |
return | void |