java.lang.Object
io.opentelemetry.instrumentation.kafkaclients.common.v0_11.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 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()
      Specified by:
      hasNext in interface Iterator<K>
    • next

      public org.apache.kafka.clients.consumer.ConsumerRecord<K,V> next()
      Specified by:
      next in interface Iterator<K>
    • remove

      public void remove()
      Specified by:
      remove in interface Iterator<K>