Class KafkaCheckpointCommit.CheckpointState<T>

java.lang.Object
io.smallrye.reactive.messaging.kafka.commit.KafkaCheckpointCommit.CheckpointState<T>
Enclosing class:
KafkaCheckpointCommit

public static class KafkaCheckpointCommit.CheckpointState<T> extends Object
  • Constructor Details

    • CheckpointState

      public CheckpointState(org.apache.kafka.common.TopicPartition topicPartition)
    • CheckpointState

      public CheckpointState(org.apache.kafka.common.TopicPartition topicPartition, ProcessingState<T> processingState)
  • Method Details

    • withPersistedAt

      public KafkaCheckpointCommit.CheckpointState<T> withPersistedAt(io.smallrye.reactive.messaging.kafka.commit.KafkaCheckpointCommit.OffsetPersistedAt offsetPersistedAt)
    • transformState

      public ProcessingState<T> transformState(Supplier<ProcessingState<T>> initialStateSupplier, Function<ProcessingState<T>,ProcessingState<T>> transform)
    • getTopicPartition

      public org.apache.kafka.common.TopicPartition getTopicPartition()
    • getProcessingState

      public ProcessingState<T> getProcessingState()
    • getPersistedAt

      public io.smallrye.reactive.messaging.kafka.commit.KafkaCheckpointCommit.OffsetPersistedAt getPersistedAt()
    • receivedRecord

      public void receivedRecord()
    • processedRecord

      public void processedRecord()
    • getUnprocessedRecords

      public long getUnprocessedRecords()
    • millisSinceLastPersistedOffset

      public long millisSinceLastPersistedOffset()
    • hasUnsyncedOffset

      public boolean hasUnsyncedOffset()
    • 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