Class ConsumerRecordId

java.lang.Object
io.confluent.parallelconsumer.state.ConsumerRecordId

public final class ConsumerRecordId extends Object
Useful identifier for a ConsumerRecord.
  • Constructor Details

    • ConsumerRecordId

      public ConsumerRecordId(org.apache.kafka.common.TopicPartition tp, long offset)
  • Method Details

    • getTp

      public org.apache.kafka.common.TopicPartition getTp()
    • getOffset

      public long getOffset()
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object