Joedb 10.0.1
The Journal-Only Embedded Database
|
Specialized client for read-only files. More...
#include <joedb/concurrency/Readonly_Client.h>
Public Member Functions | |
Readonly_Client (Buffered_File &file, Connection &connection, Content_Check content_check=Content_Check::fast, Recovery recovery=Recovery::none) | |
int64_t | pull (std::chrono::milliseconds wait=std::chrono::milliseconds(0)) override |
int64_t | push_if_ahead () override |
~Readonly_Client () override | |
![]() | |
Client (Readonly_Journal &journal, Connection &connection, Content_Check content_check) | |
const Readonly_Journal & | get_journal () const |
bool | is_shared () const |
bool | is_pullonly () const |
int64_t | get_journal_checkpoint () const |
std::string | read_blob (Blob blob) const |
int64_t | get_connection_checkpoint () const |
int64_t | get_checkpoint_difference () const |
virtual | ~Client () |
This Client has no support for transactions: the connection is locked in the constructor and unlocked in the destructor. Only allowed operations are pulling from the journal, and pushing to the connection.
Definition at line 15 of file Readonly_Client.h.
|
inline |
Definition at line 18 of file Readonly_Client.h.
|
inlineoverride |
Definition at line 52 of file Readonly_Client.h.
|
inlineoverridevirtual |
Implements joedb::Client.
Definition at line 32 of file Readonly_Client.h.
|
inlineoverridevirtual |
Implements joedb::Client.
Definition at line 43 of file Readonly_Client.h.