public class KafkaExtendProducer<K,V> extends Object
| 构造器和说明 |
|---|
KafkaExtendProducer(org.apache.kafka.clients.producer.KafkaProducer<K,V> producer) |
| 限定符和类型 | 方法和说明 |
|---|---|
org.apache.kafka.clients.producer.ProducerRecord<K,V> |
record(String topic,
Integer partition,
K key,
V value) |
org.apache.kafka.clients.producer.ProducerRecord<K,V> |
record(String topic,
Integer partition,
K key,
V value,
Iterable<org.apache.kafka.common.header.Header> headers) |
org.apache.kafka.clients.producer.ProducerRecord<K,V> |
record(String topic,
Integer partition,
Long timestamp,
K key,
V value) |
org.apache.kafka.clients.producer.ProducerRecord<K,V> |
record(String topic,
Integer partition,
Long timestamp,
K key,
V value,
Iterable<org.apache.kafka.common.header.Header> headers) |
org.apache.kafka.clients.producer.ProducerRecord<K,V> |
record(String topic,
K key,
V value) |
org.apache.kafka.clients.producer.ProducerRecord<K,V> |
record(String topic,
V value) |
Future<org.apache.kafka.clients.producer.RecordMetadata> |
send(org.apache.kafka.clients.producer.ProducerRecord<K,V> record,
org.apache.kafka.clients.producer.Callback callback) |
Future<org.apache.kafka.clients.producer.RecordMetadata> |
send(String topic,
Integer partition,
K key,
V value) |
Future<org.apache.kafka.clients.producer.RecordMetadata> |
send(String topic,
Integer partition,
K key,
V value,
Iterable<org.apache.kafka.common.header.Header> headers) |
Future<org.apache.kafka.clients.producer.RecordMetadata> |
send(String topic,
Integer partition,
Long timestamp,
K key,
V value) |
Future<org.apache.kafka.clients.producer.RecordMetadata> |
send(String topic,
Integer partition,
Long timestamp,
K key,
V value,
Iterable<org.apache.kafka.common.header.Header> headers) |
Future<org.apache.kafka.clients.producer.RecordMetadata> |
send(String topic,
K key,
V value) |
Future<org.apache.kafka.clients.producer.RecordMetadata> |
send(String topic,
V value) |
Future<org.apache.kafka.clients.producer.RecordMetadata> |
send(String topic,
V value,
org.apache.kafka.clients.producer.Callback callback) |
public org.apache.kafka.clients.producer.ProducerRecord<K,V> record(String topic, Integer partition, Long timestamp, K key, V value, Iterable<org.apache.kafka.common.header.Header> headers)
public org.apache.kafka.clients.producer.ProducerRecord<K,V> record(String topic, Integer partition, Long timestamp, K key, V value)
public org.apache.kafka.clients.producer.ProducerRecord<K,V> record(String topic, Integer partition, K key, V value, Iterable<org.apache.kafka.common.header.Header> headers)
public org.apache.kafka.clients.producer.ProducerRecord<K,V> record(String topic, Integer partition, K key, V value)
public org.apache.kafka.clients.producer.ProducerRecord<K,V> record(String topic, K key, V value)
public Future<org.apache.kafka.clients.producer.RecordMetadata> send(org.apache.kafka.clients.producer.ProducerRecord<K,V> record, org.apache.kafka.clients.producer.Callback callback)
public Future<org.apache.kafka.clients.producer.RecordMetadata> send(String topic, Integer partition, Long timestamp, K key, V value, Iterable<org.apache.kafka.common.header.Header> headers)
public Future<org.apache.kafka.clients.producer.RecordMetadata> send(String topic, Integer partition, Long timestamp, K key, V value)
public Future<org.apache.kafka.clients.producer.RecordMetadata> send(String topic, Integer partition, K key, V value, Iterable<org.apache.kafka.common.header.Header> headers)
public Future<org.apache.kafka.clients.producer.RecordMetadata> send(String topic, Integer partition, K key, V value)
public Future<org.apache.kafka.clients.producer.RecordMetadata> send(String topic, K key, V value)
Copyright © 2023. All rights reserved.