Google Cloud Bigtable C++ Client 2.13.0
A C++ Client Library for Google Cloud Bigtable
Loading...
Searching...
No Matches
Public Member Functions | List of all members
google::cloud::bigtable::IdempotentMutationPolicy Class Referenceabstract

Defines the interface to control which mutations are idempotent and therefore can be re-tried. More...

#include <google/cloud/bigtable/idempotent_mutation_policy.h>

Public Member Functions

virtual ~IdempotentMutationPolicy ()=default
 
virtual std::unique_ptr< IdempotentMutationPolicyclone () const =0
 Return a copy of the policy. More...
 
virtual bool is_idempotent (google::bigtable::v2::Mutation const &)=0
 Return true if the mutation is idempotent. More...
 
virtual bool is_idempotent (google::bigtable::v2::CheckAndMutateRowRequest const &)=0
 Return true if a conditional mutation is idempotent. More...
 

Detailed Description

Defines the interface to control which mutations are idempotent and therefore can be re-tried.

Constructor & Destructor Documentation

◆ ~IdempotentMutationPolicy()

virtual google::cloud::bigtable::IdempotentMutationPolicy::~IdempotentMutationPolicy ( )
virtualdefault

Member Function Documentation

◆ clone()

virtual std::unique_ptr< IdempotentMutationPolicy > google::cloud::bigtable::IdempotentMutationPolicy::clone ( ) const
pure virtual

◆ is_idempotent() [1/2]

virtual bool google::cloud::bigtable::IdempotentMutationPolicy::is_idempotent ( google::bigtable::v2::CheckAndMutateRowRequest const &  )
pure virtual

Return true if a conditional mutation is idempotent.

Implemented in google::cloud::bigtable::SafeIdempotentMutationPolicy, and google::cloud::bigtable::AlwaysRetryMutationPolicy.

◆ is_idempotent() [2/2]

virtual bool google::cloud::bigtable::IdempotentMutationPolicy::is_idempotent ( google::bigtable::v2::Mutation const &  )
pure virtual