Interface CheckpointStateStore
-
- All Known Implementing Classes:
FileCheckpointStateStore
public interface CheckpointStateStoreRemote state store for checkpointing Kafka processing state
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interfaceCheckpointStateStore.FactoryFactory interface forCheckpointStateStore
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default voidclose()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
Unicompleting 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
Unicompleting when the persist operation is completed.
-
close
default void close()
Close the state store on channel termination
-
-