Class TracingList<K,V>

java.lang.Object
io.opentelemetry.instrumentation.kafka.internal.TracingIterable<K,V>
io.opentelemetry.instrumentation.kafka.internal.TracingList<K,V>
All Implemented Interfaces:
Iterable<org.apache.kafka.clients.consumer.ConsumerRecord<K,V>>, Collection<org.apache.kafka.clients.consumer.ConsumerRecord<K,V>>, List<org.apache.kafka.clients.consumer.ConsumerRecord<K,V>>, SequencedCollection<org.apache.kafka.clients.consumer.ConsumerRecord<K,V>>

public class TracingList<K,V> extends TracingIterable<K,V> implements List<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> List<org.apache.kafka.clients.consumer.ConsumerRecord<K,V>> wrap(List<org.apache.kafka.clients.consumer.ConsumerRecord<K,V>> delegate, io.opentelemetry.instrumentation.api.instrumenter.Instrumenter<KafkaProcessRequest,Void> instrumenter, BooleanSupplier wrappingEnabled, KafkaConsumerContext consumerContext)
    • size

      public int size()
      Specified by:
      size in interface Collection<K>
      Specified by:
      size in interface List<K>
    • isEmpty

      public boolean isEmpty()
      Specified by:
      isEmpty in interface Collection<K>
      Specified by:
      isEmpty in interface List<K>
    • contains

      public boolean contains(Object o)
      Specified by:
      contains in interface Collection<K>
      Specified by:
      contains in interface List<K>
    • toArray

      public Object[] toArray()
      Specified by:
      toArray in interface Collection<K>
      Specified by:
      toArray in interface List<K>
    • toArray

      public <T> T[] toArray(T[] a)
      Specified by:
      toArray in interface Collection<K>
      Specified by:
      toArray in interface List<K>
    • add

      public boolean add(org.apache.kafka.clients.consumer.ConsumerRecord<K,V> consumerRecord)
      Specified by:
      add in interface Collection<K>
      Specified by:
      add in interface List<K>
    • add

      public void add(int index, org.apache.kafka.clients.consumer.ConsumerRecord<K,V> element)
      Specified by:
      add in interface List<K>
    • remove

      public boolean remove(Object o)
      Specified by:
      remove in interface Collection<K>
      Specified by:
      remove in interface List<K>
    • remove

      public org.apache.kafka.clients.consumer.ConsumerRecord<K,V> remove(int index)
      Specified by:
      remove in interface List<K>
    • containsAll

      public boolean containsAll(Collection<?> c)
      Specified by:
      containsAll in interface Collection<K>
      Specified by:
      containsAll in interface List<K>
    • addAll

      public boolean addAll(Collection<? extends org.apache.kafka.clients.consumer.ConsumerRecord<K,V>> c)
      Specified by:
      addAll in interface Collection<K>
      Specified by:
      addAll in interface List<K>
    • addAll

      public boolean addAll(int index, Collection<? extends org.apache.kafka.clients.consumer.ConsumerRecord<K,V>> c)
      Specified by:
      addAll in interface List<K>
    • removeAll

      public boolean removeAll(Collection<?> c)
      Specified by:
      removeAll in interface Collection<K>
      Specified by:
      removeAll in interface List<K>
    • retainAll

      public boolean retainAll(Collection<?> c)
      Specified by:
      retainAll in interface Collection<K>
      Specified by:
      retainAll in interface List<K>
    • clear

      public void clear()
      Specified by:
      clear in interface Collection<K>
      Specified by:
      clear in interface List<K>
    • get

      public org.apache.kafka.clients.consumer.ConsumerRecord<K,V> get(int index)
      Specified by:
      get in interface List<K>
    • set

      public org.apache.kafka.clients.consumer.ConsumerRecord<K,V> set(int index, org.apache.kafka.clients.consumer.ConsumerRecord<K,V> element)
      Specified by:
      set in interface List<K>
    • indexOf

      public int indexOf(Object o)
      Specified by:
      indexOf in interface List<K>
    • lastIndexOf

      public int lastIndexOf(Object o)
      Specified by:
      lastIndexOf in interface List<K>
    • listIterator

      public ListIterator<org.apache.kafka.clients.consumer.ConsumerRecord<K,V>> listIterator()
      Specified by:
      listIterator in interface List<K>
    • listIterator

      public ListIterator<org.apache.kafka.clients.consumer.ConsumerRecord<K,V>> listIterator(int index)
      Specified by:
      listIterator in interface List<K>
    • subList

      public List<org.apache.kafka.clients.consumer.ConsumerRecord<K,V>> subList(int fromIndex, int toIndex)
      Specified by:
      subList in interface List<K>