Interface CheckpointStateStore
-
- All Known Implementing Classes:
FileCheckpointStateStore
public interface CheckpointStateStore
Remote state store for checkpointing Kafka processing state
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interface
CheckpointStateStore.Factory
Factory interface forCheckpointStateStore
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default void
close()
Close the state store on channel terminationio.smallrye.mutiny.Uni<Map<org.apache.kafka.common.TopicPartition,ProcessingState<?>>>
fetchProcessingState(Collection<org.apache.kafka.common.TopicPartition> partitions)
Fetch the latest processing state for given topic-partitions.io.smallrye.mutiny.Uni<Void>
persistProcessingState(Map<org.apache.kafka.common.TopicPartition,ProcessingState<?>> state)
Persist the given processing state in the state store
-
-
-
Method Detail
-
fetchProcessingState
io.smallrye.mutiny.Uni<Map<org.apache.kafka.common.TopicPartition,ProcessingState<?>>> fetchProcessingState(Collection<org.apache.kafka.common.TopicPartition> partitions)
Fetch the latest processing state for given topic-partitions.Called on Vert.x event loop context
- Parameters:
partitions
- set of topic-partitions- Returns:
- the
Uni
completing with the map of processing state by topic-partition
-
persistProcessingState
io.smallrye.mutiny.Uni<Void> persistProcessingState(Map<org.apache.kafka.common.TopicPartition,ProcessingState<?>> state)
Persist the given processing state in the state storeCalled on Vert.x event loop context
- Parameters:
state
- map of processing state by topic-partition- Returns:
- the
Uni
completing when the persist operation is completed.
-
close
default void close()
Close the state store on channel termination
-
-