36template<
typename derived_
class>
67 auto retry_strategy(
const std::shared_ptr<retry_strategy> strategy) -> derived_class&
69 retry_strategy_ = strategy;
79 auto parent_span(std::shared_ptr<tracing::request_span> span) -> derived_class&
81 parent_span_ = std::move(span);
92 const std::optional<std::chrono::milliseconds>
timeout;
105 return { timeout_, retry_strategy_, parent_span_ };
118 return *
static_cast<derived_class*
>(
this);
122 std::optional<std::chrono::milliseconds> timeout_{};
123 std::shared_ptr<couchbase::retry_strategy> retry_strategy_{
nullptr };
124 std::shared_ptr<tracing::request_span> parent_span_{
nullptr };
Common options that used by most operations.
Definition common_options.hxx:38
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:67
auto self() -> derived_class &
Allows to return the right options builder instance for child implementations.
Definition common_options.hxx:116
auto parent_span(std::shared_ptr< tracing::request_span > span) -> derived_class &
Definition common_options.hxx:79
auto timeout(const std::chrono::milliseconds timeout) -> derived_class &
Specifies a custom per-operation timeout.
Definition common_options.hxx:52
auto build_common_options() const -> built
Definition common_options.hxx:103
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:91
const std::optional< std::chrono::milliseconds > timeout
Definition common_options.hxx:92
const std::shared_ptr< couchbase::retry_strategy > retry_strategy
Definition common_options.hxx:93
const std::shared_ptr< tracing::request_span > parent_span
Definition common_options.hxx:94