Couchbase Transactions C++ Client  1.0.0
Transactions client for couchbase
Public Member Functions | List of all members
couchbase::common_options< T > Class Template Reference

base class for all options More...

#include <options.hxx>

Inheritance diagram for couchbase::common_options< T >:
couchbase::common_mutate_options< T >

Public Member Functions

CB_NODISCARD boost::optional< std::chrono::microseconds > timeout () const
 get timeout More...
template<typename R >
T & timeout (R timeout)
 Set timeout. More...

Detailed Description

template<typename T>
class couchbase::common_options< T >

base class for all options

Contains options common to all operations.

Member Function Documentation

◆ timeout() [1/2]

template<typename T>
CB_NODISCARD boost::optional<std::chrono::microseconds> couchbase::common_options< T >::timeout ( ) const

get timeout

Get the timeout set in this object.

The timeout value.

◆ timeout() [2/2]

template<typename T>
template<typename R >
T& couchbase::common_options< T >::timeout ( timeout)

Set timeout.

timeoutSet the timeout for this option object.
reference to this options class. Makes these calls chainable.

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