Interface CheckpointStateStore

  • All Known Implementing Classes:
    FileCheckpointStateStore

    public interface CheckpointStateStore
    Remote state store for checkpointing Kafka processing state
    • 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 store

        Called 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