c

akka.kafka.internal

ConsumerProgressTrackerImpl

final class ConsumerProgressTrackerImpl extends ConsumerProgressTracking

Track the progress/state of the consumer. We generally try to be 'fast' with handling the partitions we track; most of the smarts are expected to be handled outside this class. For example, we will update any offsets to commit - commitRequested - without regard for what had previously been assigned or revoked from the consumer. Thus, care should be taken when managing state of the consumer and making updates.

The only case we try and be "smart" is during received, where we will filter out offsets that are not currently assigned; ensuring that we don't try to waste cycles on partitions that we no longer care about. This matches downstream behavior where the SourceLogicBuffer filters out revoked partitions.

Annotations
@InternalApi()
Source
ConsumerProgressTracking.scala
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. ConsumerProgressTrackerImpl
  2. ConsumerProgressTracking
  3. ConsumerAssignmentTrackingListener
  4. AnyRef
  5. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

  1. new ConsumerProgressTrackerImpl()

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. def addProgressTrackingCallback(callback: ConsumerAssignmentTrackingListener): Unit
  5. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  6. def assignedPositions(assignedTps: Set[TopicPartition], assignedOffsets: Map[TopicPartition, Long]): Unit
  7. def assignedPositionsAndSeek(assignedTps: Set[TopicPartition], consumer: Consumer[_, _], positionTimeout: Duration): Unit
  8. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native()
  9. def commitRequested(offsets: Map[TopicPartition, OffsetAndMetadata]): Unit
  10. def commitRequested: Map[TopicPartition, OffsetAndMetadata]
  11. def committed(offsets: Map[TopicPartition, OffsetAndMetadata]): Unit
  12. def committedOffsets: Map[TopicPartition, OffsetAndMetadata]
  13. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  14. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  15. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable])
  16. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  17. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  18. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  19. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  20. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  21. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  22. def received[K, V](received: ConsumerRecords[K, V]): Unit
  23. def receivedMessages: Map[TopicPartition, SafeOffsetAndTimestamp]
  24. def revoke(revokedTps: Set[TopicPartition]): Unit
  25. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  26. def toString(): String
    Definition Classes
    AnyRef → Any
  27. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  28. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  29. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()

Inherited from AnyRef

Inherited from Any

Ungrouped