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)
157 default:
return os <<
"state(" <<
static_cast<int>(
self) <<
')';
161 std::string to_string(
const state&
self)
163 std::ostringstream os;
172 std::ostream& operator<<(std::ostream& os,
const create_mode& mode)
175 return os <<
"normal";
178 auto tick = [&] {
return std::exchange(first,
false) ?
"" :
"|"; };
188 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 an entry 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.
create_mode
When used in client::set, this value determines how the entry is created on the server.
Authentication has failed – connection requires a new connection instance with different credentials...
Standard behavior of an entry – 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 entry will be deleted when the client session expires.
Invalid event (this should never be issued).
Issued when an entry for a given path is created.
Issued when the data of a watched entry is 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 entry 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 entries are special purpose entries useful for recipes such as leader, lock, etc.
Issued when the children of a watched entry are created or deleted.