Couchbase C++ SDK
1.4.0 (rev. 59aa900)
Toggle main menu visibility
Loading...
Searching...
No Matches
read_preference.hxx
Go to the documentation of this file.
1
2
/* -*- Mode: C++; tab-width: 4; c-basic-offset: 4; indent-tabs-mode: nil -*- */
3
/*
4
* Copyright 2020-Present Couchbase, Inc.
5
*
6
* Licensed under the Apache License, Version 2.0 (the "License");
7
* you may not use this file except in compliance with the License.
8
* You may obtain a copy of the License at
9
*
10
* http://www.apache.org/licenses/LICENSE-2.0
11
*
12
* Unless required by applicable law or agreed to in writing, software
13
* distributed under the License is distributed on an "AS IS" BASIS,
14
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15
* See the License for the specific language governing permissions and
16
* limitations under the License.
17
*/
18
19
#pragma once
20
21
namespace
couchbase
22
{
39
enum class
read_preference
{
43
no_preference
,
44
49
selected_server_group
,
50
56
selected_server_group_or_all_available
,
57
};
58
}
// namespace couchbase
couchbase
Represents a single item from the result of scan().
Definition
allow_querying_search_index_options.hxx:28
couchbase::read_preference
read_preference
Select read preference (or affinity) for the replica APIs such as:
Definition
read_preference.hxx:39
couchbase::read_preference::no_preference
@ no_preference
Do not enforce any filtering for replica set.
Definition
read_preference.hxx:43
couchbase::read_preference::selected_server_group
@ selected_server_group
Exclude any nodes that do not belong to local group selected during cluster instantiation with networ...
Definition
read_preference.hxx:49
couchbase::read_preference::selected_server_group_or_all_available
@ selected_server_group_or_all_available
The same as read_preference::selected_server_group, but if the filtered replica set is empty,...
Definition
read_preference.hxx:56
couchbase
read_preference.hxx
Generated by
1.17.0