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 Summary
Constructors Constructor Description CheckpointState(org.apache.kafka.common.TopicPartition topicPartition)
CheckpointState(org.apache.kafka.common.TopicPartition topicPartition, ProcessingState<T> processingState)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object o)
io.smallrye.reactive.messaging.kafka.commit.KafkaCheckpointCommit.OffsetPersistedAt
getPersistedAt()
ProcessingState<T>
getProcessingState()
org.apache.kafka.common.TopicPartition
getTopicPartition()
long
getUnprocessedRecords()
int
hashCode()
boolean
hasUnsyncedOffset()
long
millisSinceLastPersistedOffset()
void
processedRecord()
void
receivedRecord()
String
toString()
ProcessingState<T>
transformState(Supplier<ProcessingState<T>> initialStateSupplier, Function<ProcessingState<T>,ProcessingState<T>> transform)
KafkaCheckpointCommit.CheckpointState<T>
withPersistedAt(io.smallrye.reactive.messaging.kafka.commit.KafkaCheckpointCommit.OffsetPersistedAt offsetPersistedAt)
-
-
-
Constructor Detail
-
CheckpointState
public CheckpointState(org.apache.kafka.common.TopicPartition topicPartition)
-
CheckpointState
public CheckpointState(org.apache.kafka.common.TopicPartition topicPartition, ProcessingState<T> processingState)
-
-
Method Detail
-
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()
-
-