Метод | Описание | |
---|---|---|
Dispose ( ) : void | ||
Producer ( String brokerAddress ) : System |
Constructs Producer with specified broker address
|
|
Send ( String topic, String message ) : void |
Send text message to specified topic, using default UTF-8 encoding. Partition will be selected by Partitioner of this producer.
|
|
Send ( String topic, String message, |
Send text message to specified topic, using specified encoding. Partition will be selected by Partitioner of this producer.
|
|
Send ( String topic, String message, Object key ) : void |
Send text message to specified topic with specified key, using default UTF-8 encoding. Partition will be selected by Partitioner of this producer.
|
|
Send ( String topic, String message, Object key, |
Send text message to specified topic with specified key, using specified encoding.
|
|
Send ( String topic, String message, Object key, IPartitioner partitioner ) : void |
Send text message to specified topic with specified key, using default UTF-8 encoding and specified partitioner
|
|
Send ( String topic, String message, Object key, IPartitioner partitioner, |
Send text message to specified topic with specified key, using specified encoding and partitioner.
|
|
Send ( String topic, byte payload ) : void |
Send binary message to specified topic. Partition will be selected by Partitioner of this producer.
|
|
Send ( String topic, byte payload, Object key ) : void |
Send binary message to specified topic with specified key. Partition will be selected by Partitioner of this producer.
|
|
Send ( String topic, byte payload, Object key, IPartitioner partitioner ) : void |
Send binary message to specified topic with specified key, using specified partitioner.
|
Метод | Описание | |
---|---|---|
GetNumberOfPartitionsForTopic ( String topic ) : |
public Producer ( String brokerAddress ) : System | ||
brokerAddress | String | |
Результат | System |
public Send ( String topic, String message ) : void | ||
topic | String | |
message | String | |
Результат | void |
public Send ( String topic, String message, |
||
topic | String | |
message | String | |
encoding | ||
Результат | void |
public Send ( String topic, String message, Object key ) : void | ||
topic | String | |
message | String | |
key | Object | |
Результат | void |
public Send ( String topic, String message, Object key, |
||
topic | String | |
message | String | |
key | Object | |
encoding | ||
Результат | void |
public Send ( String topic, String message, Object key, IPartitioner partitioner ) : void | ||
topic | String | |
message | String | |
key | Object | |
partitioner | IPartitioner | |
Результат | void |
public Send ( String topic, String message, Object key, IPartitioner partitioner, |
||
topic | String | |
message | String | |
key | Object | |
partitioner | IPartitioner | |
encoding | ||
Результат | void |
public Send ( String topic, byte payload ) : void | ||
topic | String | |
payload | byte | |
Результат | void |
public Send ( String topic, byte payload, Object key ) : void | ||
topic | String | |
payload | byte | |
key | Object | |
Результат | void |
public Send ( String topic, byte payload, Object key, IPartitioner partitioner ) : void | ||
topic | String | |
payload | byte | |
key | Object | |
partitioner | IPartitioner | |
Результат | void |