Class TracingIterator<K,V>
java.lang.Object
io.opentelemetry.instrumentation.kafka.internal.TracingIterator<K,V>
- All Implemented Interfaces:
Iterator<org.apache.kafka.clients.consumer.ConsumerRecord<K,V>>
public class TracingIterator<K,V>
extends Object
implements Iterator<org.apache.kafka.clients.consumer.ConsumerRecord<K,V>>
This class is internal and is hence not for public use. Its APIs are unstable and can change at
any time.
-
Method Summary
Modifier and TypeMethodDescriptionbooleanhasNext()next()voidremove()static <K,V> Iterator <org.apache.kafka.clients.consumer.ConsumerRecord<K, V>> wrap(Iterator<org.apache.kafka.clients.consumer.ConsumerRecord<K, V>> delegateIterator, io.opentelemetry.instrumentation.api.instrumenter.Instrumenter<KafkaProcessRequest, Void> instrumenter, BooleanSupplier wrappingEnabled, KafkaConsumerContext consumerContext) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.util.Iterator
forEachRemaining
-
Method Details
-
wrap
public static <K,V> Iterator<org.apache.kafka.clients.consumer.ConsumerRecord<K,V>> wrap(Iterator<org.apache.kafka.clients.consumer.ConsumerRecord<K, V>> delegateIterator, io.opentelemetry.instrumentation.api.instrumenter.Instrumenter<KafkaProcessRequest, Void> instrumenter, BooleanSupplier wrappingEnabled, KafkaConsumerContext consumerContext) -
hasNext
public boolean hasNext() -
next
-
remove
public void remove()
-