MongoDB C++ Driver
mongocxx-3.4.2
|
Class representing optional arguments to IndexView operations. More...
#include <index_view.hpp>
Public Member Functions | |
index_view & | max_time (std::chrono::milliseconds max_time) |
Sets the maximum amount of time for this operation to run (server-side) in milliseconds. More... | |
const bsoncxx::stdx::optional< std::chrono::milliseconds > & | max_time () const |
The current max_time setting. More... | |
index_view & | write_concern (mongocxx::write_concern write_concern) |
Sets the write concern for this operation. More... | |
const bsoncxx::stdx::optional< mongocxx::write_concern > & | write_concern () const |
Gets the current write concern. More... | |
Class representing optional arguments to IndexView operations.
index_view& mongocxx::options::index_view::max_time | ( | std::chrono::milliseconds | max_time | ) |
Sets the maximum amount of time for this operation to run (server-side) in milliseconds.
max_time | The max amount of time (in milliseconds). |
const bsoncxx::stdx::optional<std::chrono::milliseconds>& mongocxx::options::index_view::max_time | ( | ) | const |
The current max_time setting.
index_view& mongocxx::options::index_view::write_concern | ( | mongocxx::write_concern | write_concern | ) |
Sets the write concern for this operation.
write_concern | Object representing the write concern. |
const bsoncxx::stdx::optional<mongocxx::write_concern>& mongocxx::options::index_view::write_concern | ( | ) | const |
Gets the current write concern.