Couchbase C++ SDK 1.0.2 (rev. 51f4775)
Loading...
Searching...
No Matches
lookup_in_any_replica_options Struct Reference

Options for collection::lookup_in_any_replica(). More...

#include <couchbase/lookup_in_any_replica_options.hxx>

Inheritance diagram for lookup_in_any_replica_options:
Inheritance graph

Classes

struct  built
 Immutable value object representing consistent options. More...
 

Public Member Functions

auto read_preference (read_preference preference) -> lookup_in_any_replica_options &
 Choose how the replica nodes will be selected.
 
auto build () const -> built
 Validates options and returns them as an immutable value.
 
- Public Member Functions inherited from common_options< lookup_in_any_replica_options >
auto timeout (const std::chrono::milliseconds timeout) -> lookup_in_any_replica_options &
 Specifies a custom per-operation timeout.
 
auto retry_strategy (const std::shared_ptr< retry_strategy > strategy) -> lookup_in_any_replica_options &
 Specifies a custom couchbase::retry_strategy for this operation.
 

Additional Inherited Members

- Protected Member Functions inherited from common_options< lookup_in_any_replica_options >
auto build_common_options () const -> built
 
auto self () -> lookup_in_any_replica_options &
 Allows to return the right options builder instance for child implementations.
 

Detailed Description

Options for collection::lookup_in_any_replica().

Since
1.0.0
Committed
Generally available API and should be preferred in production

Member Function Documentation

◆ build()

auto build ( ) const -> built
inlinenodiscard

Validates options and returns them as an immutable value.

Returns
consistent options as an immutable value
Exceptions
std::system_errorwith code errc::common::invalid_argument if the options are not valid
Since
1.0.0
Internal
Internal interface

◆ read_preference()

Choose how the replica nodes will be selected.

By default it has no preference and will select any available replica, but it is possible to prioritize or restrict to only nodes in local server group.

Parameters
preference
Returns
this options builder for chaining purposes.
Since
1.0.0
Committed
Generally available API and should be preferred in production

The documentation for this struct was generated from the following file: