Class KafkaCheckpointCommit.CheckpointState<T>
java.lang.Object
io.smallrye.reactive.messaging.kafka.commit.KafkaCheckpointCommit.CheckpointState<T>
- Enclosing class:
- KafkaCheckpointCommit
-
Constructor Summary
ConstructorsConstructorDescriptionCheckpointState
(org.apache.kafka.common.TopicPartition topicPartition) CheckpointState
(org.apache.kafka.common.TopicPartition topicPartition, ProcessingState<T> processingState) -
Method Summary
Modifier and TypeMethodDescriptionboolean
io.smallrye.reactive.messaging.kafka.commit.KafkaCheckpointCommit.OffsetPersistedAt
org.apache.kafka.common.TopicPartition
long
int
hashCode()
boolean
long
void
void
toString()
transformState
(Supplier<ProcessingState<T>> initialStateSupplier, Function<ProcessingState<T>, ProcessingState<T>> transform) withPersistedAt
(io.smallrye.reactive.messaging.kafka.commit.KafkaCheckpointCommit.OffsetPersistedAt offsetPersistedAt)
-
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
-
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
-
hashCode
public int hashCode() -
toString
-