64 return { base, expiry_, delta_, initial_value_ };
82 expiry_ = core::impl::expiry_relative(duration);
98 expiry_ = core::impl::expiry_absolute(time_point);
128 initial_value_ = value;
133 std::uint32_t expiry_{ 0 };
134 std::uint64_t delta_{ 1 };
135 std::optional<std::uint64_t> initial_value_{};
Common options that used by most operations.
Definition common_durability_options.hxx:39
auto build_common_durability_options() const -> built
Definition common_durability_options.hxx:100
auto self() -> decrement_options &
Definition common_options.hxx:102
Represents result of counter operations.
Definition counter_result.hxx:35
Represents a single item from the result of collection::scan()
Definition allow_querying_search_index_options.hxx:28
std::function< void(error, counter_result)> decrement_handler
The signature for the handler of the binary_collection::decrement() operation.
Definition decrement_options.hxx:144
Immutable value object representing consistent options.
Definition decrement_options.hxx:44
const std::optional< std::uint64_t > initial_value
Definition decrement_options.hxx:47
const std::uint64_t delta
Definition decrement_options.hxx:46
const std::uint32_t expiry
Definition decrement_options.hxx:45
Options for collection#decrement().
Definition decrement_options.hxx:37
auto initial(std::uint64_t value) -> decrement_options &
The initial value that should be used if the document has not been created yet.
Definition decrement_options.hxx:126
auto expiry(std::chrono::system_clock::time_point time_point) -> decrement_options &
Sets the expiry for the document.
Definition decrement_options.hxx:96
auto build() const -> built
Validates options and returns them as an immutable value.
Definition decrement_options.hxx:61
auto expiry(std::chrono::seconds duration) -> decrement_options &
Sets the expiry for the document.
Definition decrement_options.hxx:80
auto delta(std::uint64_t delta) -> decrement_options &
The amount of which the document value should be decremented.
Definition decrement_options.hxx:111