Joedb 10.5.0
The Journal-Only Embedded Database
Loading...
Searching...
No Matches
joedb::File_Connection Class Reference

#include <joedb/concurrency/File_Connection.h>

Inheritance diagram for joedb::File_Connection:
Collaboration diagram for joedb::File_Connection:

Public Member Functions

 File_Connection (Abstract_File &server_file)
Public Member Functions inherited from joedb::Journal_Connection
 Journal_Connection (Writable_Journal &server_journal)
bool is_pullonly () const override
int64_t pull (Lock_Action lock_action, Data_Transfer data_transfer, Writable_Journal &client_journal, std::chrono::milliseconds wait) override
 Pull from the connection.
int64_t push (const Readonly_Journal &client_journal, const int64_t from, const int64_t until, Unlock_Action unlock_action) override
 Push new data to the connection.
void unlock () override
 Unlock the connection.
 ~Journal_Connection ()
Public Member Functions inherited from joedb::Pullonly_Journal_Connection
 Pullonly_Journal_Connection (Readonly_Journal &server_journal)
bool is_pullonly () const override
int64_t handshake (const Readonly_Journal &client_journal, Content_Check content_check) override
 Called during Client construction.
void check_matching_content (const Readonly_Journal &client_journal, Content_Check content_check, int64_t from, int64_t until) override
 Compare content of file and connection. Throw if mismatch.
int64_t pull (Lock_Action lock_action, Data_Transfer data_transfer, Writable_Journal &client_journal, std::chrono::milliseconds wait) override
 Pull from the connection.
int64_t push (const Readonly_Journal &client_journal, const int64_t from, const int64_t until, Unlock_Action unlock_action) override
 Push new data to the connection.
Public Member Functions inherited from joedb::Connection
virtual ~Connection ()

Additional Inherited Members

Static Public Attributes inherited from joedb::Connection
static Connection dummy
 Since this class has no internal state, this global variable can be used instead of creating an instance.
Protected Member Functions inherited from joedb::Connection
 Connection ()=default
Static Protected Member Functions inherited from joedb::Connection
static void content_mismatch ()
 Called by handshake when the file and the connection do not match.
Protected Attributes inherited from joedb::Pullonly_Journal_Connection
Readonly_Journal & server_journal

Detailed Description

Definition at line 108 of file File_Connection.h.

Constructor & Destructor Documentation

◆ File_Connection()

joedb::File_Connection::File_Connection ( Abstract_File & server_file)
inline

Definition at line 114 of file File_Connection.h.


The documentation for this class was generated from the following file: