Class SubscriptionState.FetchPosition

java.lang.Object
org.apache.kafka.clients.consumer.internals.SubscriptionState.FetchPosition
Enclosing class:
SubscriptionState

public static class SubscriptionState.FetchPosition extends Object
Represents the position of a partition subscription. This includes the offset and epoch from the last record in the batch from a FetchResponse. It also includes the leader epoch at the time the batch was consumed.
  • Field Details

    • offset

      public final long offset
  • Constructor Details

    • FetchPosition

      public FetchPosition(long offset, Optional<Integer> offsetEpoch, org.apache.kafka.clients.Metadata.LeaderAndEpoch currentLeader)
  • Method Details