Joedb 9.5.0
The Journal-Only Embedded Database
Loading...
Searching...
No Matches
Public Member Functions | List of all members
joedb::Readonly_Client Class Reference

Specialized client for read-only files. More...

#include <joedb/concurrency/Readonly_Client.h>

Inheritance diagram for joedb::Readonly_Client:
Inheritance graph
[legend]
Collaboration diagram for joedb::Readonly_Client:
Collaboration graph
[legend]

Public Member Functions

 Readonly_Client (Readonly_Journal &journal, Connection &connection, Content_Check content_check=Content_Check::quick)
 
int64_t pull (std::chrono::milliseconds wait=std::chrono::milliseconds(0)) override
 
int64_t push_if_ahead () override
 
 ~Readonly_Client () override
 
- Public Member Functions inherited from joedb::Client
 Client (Readonly_Journal &journal, Connection &connection, Content_Check content_check)
 
const Readonly_Journalget_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 ()
 

Additional Inherited Members

- Protected Member Functions inherited from joedb::Client
virtual void read_journal ()
 
int64_t push (Unlock_Action unlock_action)
 
- Protected Attributes inherited from joedb::Client
Readonly_Journaljournal
 
Connectionconnection
 
int64_t connection_checkpoint
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ Readonly_Client()

joedb::Readonly_Client::Readonly_Client ( Readonly_Journal journal,
Connection connection,
Content_Check  content_check = Content_Check::quick 
)
inline

Definition at line 18 of file Readonly_Client.h.

◆ ~Readonly_Client()

joedb::Readonly_Client::~Readonly_Client ( )
inlineoverride

Definition at line 50 of file Readonly_Client.h.

Member Function Documentation

◆ pull()

int64_t joedb::Readonly_Client::pull ( std::chrono::milliseconds  wait = std::chrono::milliseconds(0))
inlineoverridevirtual

Implements joedb::Client.

Definition at line 30 of file Readonly_Client.h.

◆ push_if_ahead()

int64_t joedb::Readonly_Client::push_if_ahead ( )
inlineoverridevirtual

Implements joedb::Client.

Definition at line 41 of file Readonly_Client.h.


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