Couchbase C++ SDK 1.3.2 (rev. 49d3be2)
Loading...
Searching...
No Matches
result Class Reference

Base class for operations of data service. More...

#include <couchbase/result.hxx>

Inheritance diagram for result:
Inheritance graph

Public Member Functions

 result ()=default
 result (couchbase::cas cas)
 result (couchbase::cas cas, couchbase::node_id node_id)
auto cas () const -> couchbase::cas
auto node_id () const -> const couchbase::node_id &
 Returns the identity of the cluster node that served this request.
void node_id (couchbase::node_id id)

Detailed Description

Base class for operations of data service.

Since
1.0.0
Committed
Generally available API and should be preferred in production

Constructor & Destructor Documentation

◆ result() [1/3]

result ( )
default
Since
1.0.0
Internal
Internal interface

◆ result() [2/3]

result ( couchbase::cas cas)
inlineexplicit
Parameters
cas
Since
1.0.0
Committed
Generally available API and should be preferred in production

◆ result() [3/3]

result ( couchbase::cas cas,
couchbase::node_id node_id )
inline
Parameters
cas
node_ididentity of the node that served the request
Since
1.3.2
Uncommitted
Might be changed in the future, and eventually promoted to committed

Member Function Documentation

◆ cas()

auto cas ( ) const -> couchbase::cas
inlinenodiscard
Returns
Since
1.0.0
Committed
Generally available API and should be preferred in production

◆ node_id() [1/2]

auto node_id ( ) const -> const couchbase::node_id &
inlinenodiscard

Returns the identity of the cluster node that served this request.

The returned node_id is default-constructed (falsy) when the node could not be determined.

Returns
identity of the serving node
Since
1.3.2
Uncommitted
Might be changed in the future, and eventually promoted to committed

◆ node_id() [2/2]

void node_id ( couchbase::node_id id)
inline
Since
1.3.2
Internal
Internal interface

The documentation for this class was generated from the following file: