#include <joedb/concurrency/File_Connection.h>
|
| Journal_Connection (Writable_Journal &server_journal) |
|
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 () |
|
| Pullonly_Journal_Connection (Readonly_Journal &server_journal) |
|
int64_t | handshake (const Readonly_Journal &client_journal, Content_Check content_check) override |
| Called during Client construction.
|
|
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.
|
|
virtual bool | is_pullonly () const |
|
virtual | ~Connection () |
|
Definition at line 44 of file File_Connection.h.
◆ Journal_Connection()
joedb::Journal_Connection::Journal_Connection |
( |
Writable_Journal & |
server_journal | ) |
|
|
inline |
◆ ~Journal_Connection()
joedb::Journal_Connection::~Journal_Connection |
( |
| ) |
|
◆ pull()
- Parameters
-
lock_action | whether the connection should be locked before pulling |
data_transfer | whether data should be transferred |
client_journal | journal to pull into |
wait | duration during which the connection may wait for new data if the pull would otherwise be empty |
- Return values
-
Reimplemented from joedb::Connection.
Definition at line 80 of file File_Connection.cpp.
◆ push()
int64_t joedb::Journal_Connection::push |
( |
const Readonly_Journal & |
client_journal, |
|
|
const int64_t |
from, |
|
|
const int64_t |
until, |
|
|
Unlock_Action |
unlock_action |
|
) |
| |
|
overridevirtual |
◆ unlock()
void joedb::Journal_Connection::unlock |
( |
| ) |
|
|
overridevirtual |
The documentation for this class was generated from the following files: