CheckpointStore Interface
public interface CheckpointStore
An interface that defines the operations for storing and retrieving partition ownership information and checkpoint details for each partition.
Method Summary
Modifier and Type | Method and Description |
---|---|
abstract
Flux<Partition |
claimOwnership(List<PartitionOwnership> requestedPartitionOwnerships)
Called to claim ownership of a list of partitions. |
abstract Flux<Checkpoint> |
listCheckpoints(String fullyQualifiedNamespace, String eventHubName, String consumerGroup)
Called to get the list of checkpoints from the underlying data store. |
abstract
Flux<Partition |
listOwnership(String fullyQualifiedNamespace, String eventHubName, String consumerGroup)
Called to get the list of all existing partition ownership from the underlying data store. |
abstract Mono<Void> |
updateCheckpoint(Checkpoint checkpoint)
Updates the checkpoint in the data store for a partition. |
Method Details
claimOwnership
public abstract Flux
Called to claim ownership of a list of partitions. This will return the list of partitions that were owned successfully.
Parameters:
Returns:
listCheckpoints
public abstract Flux
Called to get the list of checkpoints from the underlying data store. This method could return empty results if there are no checkpoints available in the data store.
Parameters:
Returns:
listOwnership
public abstract Flux
Called to get the list of all existing partition ownership from the underlying data store. Could return empty results if there are is no existing ownership information.
Parameters:
Returns:
updateCheckpoint
public abstract Mono
Updates the checkpoint in the data store for a partition.
Parameters:
Returns:
Applies to
Azure SDK for Java