14 std::ostream& operator<<(std::ostream& os,
const event_type&
self)
25 default:
return os <<
"event_type(" <<
static_cast<int>(
self) <<
')';
31 std::ostringstream os;
40 std::ostream& operator<<(std::ostream& os,
const version&
self)
52 std::string to_string(
const version&
self)
54 std::ostringstream os;
63 std::ostream& operator<<(std::ostream& os,
const acl_version&
self)
75 std::string to_string(
const acl_version&
self)
77 std::ostringstream os;
86 std::ostream& operator<<(std::ostream& os,
const child_version&
self)
88 os <<
"child_version(";
98 std::string to_string(
const child_version&
self)
100 std::ostringstream os;
109 std::ostream& operator<<(std::ostream& os,
const transaction_id&
self)
111 return os <<
"transaction_id(" <<
self.value <<
')';
114 std::string to_string(
const transaction_id&
self)
116 std::ostringstream os;
125 std::ostream& operator<<(std::ostream& os,
const stat&
self)
127 os <<
"{data_version=" <<
self.data_version.value;
128 os <<
" child_version=" <<
self.child_version.value;
129 os <<
" acl_version=" <<
self.acl_version.value;
130 os <<
" data_size=" <<
self.data_size;
131 os <<
" children_count=" <<
self.children_count;
132 os <<
" ephemeral=" << (
self.is_ephemeral() ?
"true" :
"false");
136 std::string to_string(
const stat&
self)
138 std::ostringstream os;
147 std::ostream& operator<<(std::ostream& os,
const state&
self)
156 case state::not_connected:
return os <<
"not_connected";
159 default:
return os <<
"state(" <<
static_cast<int>(
self) <<
')';
163 std::string to_string(
const state&
self)
165 std::ostringstream os;
174 std::ostream& operator<<(std::ostream& os,
const create_mode& mode)
177 return os <<
"normal";
180 auto tick = [&] {
return std::exchange(first,
false) ?
"" :
"|"; };
190 std::ostringstream os;
This value is issued as part of an event when the state changes.
The client is connected to a read-only server, that is the server which is not currently connected to...
Issued when a znode at a given path is erased.
constexpr bool is_set(create_mode self, create_mode flags)
Check that self has flags set.
The client is not connected to any server in the ensemble.
state
Enumeration of states the client may be at when a watch triggers.
The client is connecting.
Client is attempting to associate a session.
create_mode
When used in client::set, this value determines how the znode is created on the server.
Authentication has failed – connection requires a new connection instance with different credentials...
Standard behavior of a znode – the opposite of doing any of the options.
The client is in the connected state – it is connected to a server in the ensemble (one of the serve...
The znode will be deleted upon the client's disconnect.
Invalid event (this should never be issued).
Issued when a znode at a given path is created.
Issued when the data of a watched znode are altered.
The serving cluster has expired this session.
Watch has been forcefully removed.
event_type
Enumeration of types of events that may occur.
The name of the znode will be appended with a monotonically increasing number.
static constexpr version any()
When specified in an operation, this version specifier will always pass.
static constexpr version invalid()
An invalid version specifier.
Container nodes are special purpose nodes useful for recipes such as leader, lock, etc.
Issued when the children of a watched znode are created or deleted.