public class TracingProducerFactory<K,V> extends Object implements org.springframework.kafka.core.ProducerFactory<K,V>, org.springframework.beans.factory.DisposableBean
| Constructor and Description |
|---|
TracingProducerFactory(org.springframework.kafka.core.ProducerFactory<K,V> producerFactory,
io.opentracing.Tracer tracer) |
TracingProducerFactory(org.springframework.kafka.core.ProducerFactory<K,V> producerFactory,
io.opentracing.Tracer tracer,
BiFunction<String,org.apache.kafka.clients.producer.ProducerRecord,String> producerSpanNameProvider) |
TracingProducerFactory(org.springframework.kafka.core.ProducerFactory<K,V> producerFactory,
io.opentracing.Tracer tracer,
Collection<SpanDecorator> spanDecorators) |
TracingProducerFactory(org.springframework.kafka.core.ProducerFactory<K,V> producerFactory,
io.opentracing.Tracer tracer,
Collection<SpanDecorator> spanDecorators,
BiFunction<String,org.apache.kafka.clients.producer.ProducerRecord,String> producerSpanNameProvider) |
| Modifier and Type | Method and Description |
|---|---|
void |
closeProducerFor(String transactionIdSuffix) |
void |
closeThreadBoundProducer() |
org.apache.kafka.clients.producer.Producer<K,V> |
createProducer() |
org.apache.kafka.clients.producer.Producer<K,V> |
createProducer(String txIdPrefix) |
void |
destroy() |
boolean |
isProducerPerConsumerPartition() |
boolean |
transactionCapable() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddListener, addListener, addPostProcessor, createNonTransactionalProducer, getConfigurationProperties, getKeySerializerSupplier, getListeners, getPhysicalCloseTimeout, getPostProcessors, getTransactionIdPrefix, getValueSerializerSupplier, isProducerPerThread, removeListener, removePostProcessor, resetpublic TracingProducerFactory(org.springframework.kafka.core.ProducerFactory<K,V> producerFactory, io.opentracing.Tracer tracer)
public TracingProducerFactory(org.springframework.kafka.core.ProducerFactory<K,V> producerFactory, io.opentracing.Tracer tracer, Collection<SpanDecorator> spanDecorators)
public TracingProducerFactory(org.springframework.kafka.core.ProducerFactory<K,V> producerFactory, io.opentracing.Tracer tracer, BiFunction<String,org.apache.kafka.clients.producer.ProducerRecord,String> producerSpanNameProvider)
public TracingProducerFactory(org.springframework.kafka.core.ProducerFactory<K,V> producerFactory, io.opentracing.Tracer tracer, Collection<SpanDecorator> spanDecorators, BiFunction<String,org.apache.kafka.clients.producer.ProducerRecord,String> producerSpanNameProvider)
public org.apache.kafka.clients.producer.Producer<K,V> createProducer(String txIdPrefix)
public boolean transactionCapable()
public void closeProducerFor(String transactionIdSuffix)
public boolean isProducerPerConsumerPartition()
public void closeThreadBoundProducer()
Copyright © 2017-2020–2020. All rights reserved.