1#ifndef joedb_Readonly_Client_declared
2#define joedb_Readonly_Client_declared
34 std::chrono::milliseconds wait = std::chrono::milliseconds(0)
Handle concurrent access to a file with a joedb::Connection.
virtual void read_journal()
int64_t push(int64_t until, Unlock_Action unlock_action)
int64_t get_connection_checkpoint() const
static Connection dummy
Since this class has no internal state, this global variable can be used instead of creating an insta...
virtual void unlock()
Unlock the connection.
Specialized client for read-only files.
Readonly_Client(Abstract_File &file, Connection &connection=Connection::dummy, Content_Check content_check=Content_Check::fast, Recovery recovery=Recovery::none)
int64_t pull(std::chrono::milliseconds wait=std::chrono::milliseconds(0)) override
~Readonly_Client() override
int64_t push_if_ahead(int64_t until) override
int64_t get_checkpoint() const
@ none
default: fail if file size > checkpoint