userver: storages::mongo::options::MaxServerTime Class Reference
⚠️ This is the documentation for an old userver version. Click here to switch to the latest version.
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages Concepts
storages::mongo::options::MaxServerTime Class Reference

Specifies the server-side time limit for the operation. More...

#include <userver/storages/mongo/options.hpp>

Public Member Functions

 MaxServerTime (const std::chrono::milliseconds &value)
 
const std::chrono::milliseconds & Value () const
 

Detailed Description

Specifies the server-side time limit for the operation.

Warning
This does not set any client-side timeouts.

Definition at line 292 of file options.hpp.

Constructor & Destructor Documentation

◆ MaxServerTime()

storages::mongo::options::MaxServerTime::MaxServerTime ( const std::chrono::milliseconds &  value)
inlineexplicit

Definition at line 294 of file options.hpp.

Member Function Documentation

◆ Value()

const std::chrono::milliseconds & storages::mongo::options::MaxServerTime::Value ( ) const
inline

Definition at line 297 of file options.hpp.


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