1#ifndef joedb_Readonly_Client_declared
2#define joedb_Readonly_Client_declared
34 std::chrono::milliseconds wait = std::chrono::milliseconds(0)
virtual void read_journal()
int64_t push(int64_t until, Unlock_Action unlock_action)
int64_t get_connection_checkpoint() const
Client(Readonly_Journal &journal, Connection &connection, Content_Check content_check)
static Connection dummy
Since this class has no internal state, this global variable can be used instead of creating an insta...
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
Readonly_Journal(Journal_Construction_Lock &lock)
int64_t get_checkpoint() const
@ none
default: fail if file size > checkpoint