public class FiberKafkaProducer<K,V> extends Object implements org.apache.kafka.clients.producer.Producer<K,V>
Constructor and Description |
---|
FiberKafkaProducer(org.apache.kafka.clients.producer.Producer<K,V> producer) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
void |
close(long timeout,
TimeUnit unit) |
void |
flush() |
Map<org.apache.kafka.common.MetricName,? extends org.apache.kafka.common.Metric> |
metrics() |
List<org.apache.kafka.common.PartitionInfo> |
partitionsFor(String topic) |
Future<org.apache.kafka.clients.producer.RecordMetadata> |
send(org.apache.kafka.clients.producer.ProducerRecord<K,V> record) |
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(org.apache.kafka.clients.producer.ProducerRecord<K,V> record)
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 void flush()
public Map<org.apache.kafka.common.MetricName,? extends org.apache.kafka.common.Metric> metrics()
public void close()