4#include "models/checkpoint_store_models.hpp"
6#include <azure/core/context.hpp>
7#include <azure/core/datetime.hpp>
8#include <azure/core/nullable.hpp>
14namespace Azure {
namespace Messaging {
namespace EventHubs {
35 std::vector<Models::Ownership>
const& partitionOwnership,
36 Core::Context
const& context = {})
42 std::string
const& fullyQualifiedNamespace,
43 std::string
const& eventHubName,
44 std::string
const& consumerGroup,
45 Core::Context
const& context = {})
51 std::string
const& fullyQualifiedNamespace,
52 std::string
const& eventHubName,
53 std::string
const& consumerGroup,
54 Core::Context
const& context = {})
61 Core::Context
const& context = {})
CheckpointStore is used by multiple consumers to coordinate progress and ownership for partitions.
Definition checkpoint_store.hpp:19
virtual void UpdateCheckpoint(Models::Checkpoint const &checkpoint, Core::Context const &context={})=0
UpdateCheckpoint updates a specific checkpoint with a sequence and offset.
virtual std::vector< Models::Checkpoint > ListCheckpoints(std::string const &fullyQualifiedNamespace, std::string const &eventHubName, std::string const &consumerGroup, Core::Context const &context={})=0
ListCheckpoints lists all the available checkpoints.
CheckpointStore(CheckpointStore const &other)=default
Construct a CheckpointStore from another CheckpointStore.
virtual std::vector< Models::Ownership > ClaimOwnership(std::vector< Models::Ownership > const &partitionOwnership, Core::Context const &context={})=0
ClaimOwnership attempts to claim ownership of the partitions in partitionOwnership and returns the ac...
CheckpointStore & operator=(CheckpointStore const &other)=default
Construct a CheckpointStore from another CheckpointStore.
virtual std::vector< Models::Ownership > ListOwnership(std::string const &fullyQualifiedNamespace, std::string const &eventHubName, std::string const &consumerGroup, Core::Context const &context={})=0
ListOwnership lists all ownerships.
Checkpoint tracks the last successfully processed event in a partition.
Definition checkpoint_store_models.hpp:45