Class TracingListIterator<K,V>
java.lang.Object
io.opentelemetry.instrumentation.kafkaclients.common.v0_11.internal.TracingListIterator<K,V>
- All Implemented Interfaces:
Iterator<org.apache.kafka.clients.consumer.ConsumerRecord<K,,V>> ListIterator<org.apache.kafka.clients.consumer.ConsumerRecord<K,V>>
public class TracingListIterator<K,V>
extends Object
implements ListIterator<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 TypeMethodDescriptionvoidbooleanhasNext()booleannext()intprevious()intvoidremove()voidstatic <K,V> ListIterator <org.apache.kafka.clients.consumer.ConsumerRecord<K, V>> wrap(ListIterator<org.apache.kafka.clients.consumer.ConsumerRecord<K, V>> delegateListIterator, 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> ListIterator<org.apache.kafka.clients.consumer.ConsumerRecord<K,V>> wrap(ListIterator<org.apache.kafka.clients.consumer.ConsumerRecord<K, V>> delegateListIterator, io.opentelemetry.instrumentation.api.instrumenter.Instrumenter<KafkaProcessRequest, Void> instrumenter, BooleanSupplier wrappingEnabled, KafkaConsumerContext consumerContext) -
hasNext
public boolean hasNext() -
next
-
hasPrevious
public boolean hasPrevious()- Specified by:
hasPreviousin interfaceListIterator<K>
-
previous
- Specified by:
previousin interfaceListIterator<K>
-
nextIndex
public int nextIndex()- Specified by:
nextIndexin interfaceListIterator<K>
-
previousIndex
public int previousIndex()- Specified by:
previousIndexin interfaceListIterator<K>
-
remove
public void remove() -
set
- Specified by:
setin interfaceListIterator<K>
-
add
- Specified by:
addin interfaceListIterator<K>
-