35template<
typename derived_
class>
66 auto retry_strategy(
const std::shared_ptr<retry_strategy> strategy) -> derived_class&
68 retry_strategy_ = strategy;
79 const std::optional<std::chrono::milliseconds>
timeout;
91 return { timeout_, retry_strategy_ };
104 return *
static_cast<derived_class*
>(
this);
108 std::optional<std::chrono::milliseconds> timeout_{};
109 std::shared_ptr<couchbase::retry_strategy> retry_strategy_{
nullptr };
Common options that used by most operations.
Definition common_options.hxx:37
auto retry_strategy(const std::shared_ptr< retry_strategy > strategy) -> derived_class &
Specifies a custom couchbase::retry_strategy for this operation.
Definition common_options.hxx:66
auto self() -> derived_class &
Allows to return the right options builder instance for child implementations.
Definition common_options.hxx:102
auto timeout(const std::chrono::milliseconds timeout) -> derived_class &
Specifies a custom per-operation timeout.
Definition common_options.hxx:51
auto build_common_options() const -> built
Definition common_options.hxx:89
Represents a single item from the result of collection::scan()
Definition allow_querying_search_index_options.hxx:28
Immutable value object representing consistent options.
Definition common_options.hxx:78
const std::optional< std::chrono::milliseconds > timeout
Definition common_options.hxx:79
const std::shared_ptr< couchbase::retry_strategy > retry_strategy
Definition common_options.hxx:80