Handle concurrent access to a file with a joedb::Connection.
More...
#include <joedb/concurrency/Client.h>
Definition at line 11 of file Client.h.
◆ Client()
◆ ~Client()
joedb::Client::~Client |
( |
| ) |
|
|
virtualdefault |
◆ get_checkpoint()
int64_t joedb::Client::get_checkpoint |
( |
| ) |
const |
|
inline |
◆ get_checkpoint_difference()
int64_t joedb::Client::get_checkpoint_difference |
( |
| ) |
const |
|
inline |
◆ get_journal()
◆ get_server_checkpoint()
int64_t joedb::Client::get_server_checkpoint |
( |
| ) |
const |
|
inline |
◆ is_readonly()
bool joedb::Client::is_readonly |
( |
| ) |
const |
|
inline |
◆ pull()
int64_t joedb::Client::pull |
( |
std::chrono::milliseconds |
wait = std::chrono::milliseconds(0) | ) |
|
|
inline |
- Parameters
-
wait | indicates how long the connection may wait for new data |
- Return values
-
pull_size | number of bytes pulled |
Definition at line 131 of file Client.h.
◆ push_unlock()
void joedb::Client::push_unlock |
( |
| ) |
|
|
inline |
◆ read_blob_data()
std::string joedb::Client::read_blob_data |
( |
Blob |
blob | ) |
const |
|
inline |
◆ read_journal()
virtual void joedb::Client::read_journal |
( |
| ) |
|
|
protectedpure virtual |
Implemented in settings::Client, settings::Readonly_Client, tutorial::Client, tutorial::Readonly_Client, joedb::Readonly_Database_Client, joedb::Readonly_Journal_Client, joedb::Writable_Database_Client, joedb::Writable_Journal_Client, joedb::db::encoded_file::Client, joedb::db::encoded_file::Readonly_Client, joedb::db::multi_server::Client, and joedb::db::multi_server::Readonly_Client.
◆ transaction()
template<typename F >
void joedb::Client::transaction |
( |
F |
transaction | ) |
|
|
inlineprotected |
◆ Client_Lock
The documentation for this class was generated from the following files:
- /home/rcoulom/repos/joedb/src/joedb/concurrency/Client.h
- /home/rcoulom/repos/joedb/src/joedb/concurrency/Client.cpp