|
Couchbase C++ SDK 1.4.0 (rev. 59aa900)
|
Options for wait_until_ready() and wait_until_ready(). More...
#include <couchbase/wait_until_ready_options.hxx>
Classes | |
| struct | built |
| Immutable value object representing consistent options. More... | |
Public Member Functions | |
| auto | desired_state (cluster_state desired_state) -> wait_until_ready_options & |
| Sets the state the cluster (or bucket) has to reach before the wait completes. | |
| auto | service_types (std::set< service_type > service_types) -> wait_until_ready_options & |
| Customizes the set of services to consider. | |
| auto | build () const -> built |
| Validates the options and returns them as an immutable value. | |
Options for wait_until_ready() and wait_until_ready().
|
inlinenodiscard |
Validates the options and returns them as an immutable value.
| std::system_error | with code errc::common::invalid_argument if the options are not valid |
|
inline |
Sets the state the cluster (or bucket) has to reach before the wait completes.
cluster_state::offline is not a valid target and is rejected with errc::common::invalid_argument.| desired_state | the target state. |
|
inline |
Customizes the set of services to consider.
When empty, whichever services the topology reports are considered.
| service_types | the services to consider. |