#include <joedb/concurrency/File_Connection.h>
|
| Pullonly_Journal_Connection (Readonly_Journal &server_journal) |
|
int64_t | handshake (Readonly_Journal &client_journal, bool content_check) override |
| Called during Client construction.
|
|
int64_t | pull (Writable_Journal &client_journal, std::chrono::milliseconds) override |
| Pull new data from the connection.
|
|
int64_t | get_checkpoint (Readonly_Journal &client_journal, std::chrono::milliseconds) override |
| Get new connection checkpoint without pulling.
|
|
int64_t | lock_pull (Writable_Journal &client_journal, std::chrono::milliseconds) override |
| Fused lock_pull, executed at the start of a write transaction.
|
|
int64_t | push_until (Readonly_Journal &client_journal, const int64_t from_checkpoint, const int64_t until_checkpoint, bool unlock_after) override |
| Push new data to the connection.
|
|
int64_t | push (Readonly_Journal &client_journal, int64_t from_checkpoint, bool unlock_after) |
| Shortcut to call push_until until the client checkpoint.
|
|
virtual void | unlock () |
| Can be used to cancel a transaction without pushing.
|
|
virtual | ~Connection () |
|
Definition at line 9 of file File_Connection.h.
◆ Pullonly_Journal_Connection()
joedb::Pullonly_Journal_Connection::Pullonly_Journal_Connection |
( |
Readonly_Journal & |
server_journal | ) |
|
|
inline |
◆ get_checkpoint()
int64_t joedb::Pullonly_Journal_Connection::get_checkpoint |
( |
Readonly_Journal & |
client_journal, |
|
|
std::chrono::milliseconds |
wait |
|
) |
| |
|
overridevirtual |
◆ handshake()
int64_t joedb::Pullonly_Journal_Connection::handshake |
( |
Readonly_Journal & |
client_journal, |
|
|
bool |
content_check |
|
) |
| |
|
overridevirtual |
- Parameters
-
client_journal | may be used to check matching content |
content_check | indicates whether matching content is tested |
- Return values
-
Reimplemented from joedb::Connection.
Definition at line 7 of file File_Connection.cpp.
◆ lock_pull()
int64_t joedb::Pullonly_Journal_Connection::lock_pull |
( |
Writable_Journal & |
client_journal, |
|
|
std::chrono::milliseconds |
wait |
|
) |
| |
|
overridevirtual |
◆ pull()
int64_t joedb::Pullonly_Journal_Connection::pull |
( |
Writable_Journal & |
client_journal, |
|
|
std::chrono::milliseconds |
wait |
|
) |
| |
|
overridevirtual |
- Parameters
-
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 36 of file File_Connection.cpp.
◆ push_until()
int64_t joedb::Pullonly_Journal_Connection::push_until |
( |
Readonly_Journal & |
client_journal, |
|
|
const int64_t |
from_checkpoint, |
|
|
const int64_t |
until_checkpoint, |
|
|
bool |
unlock_after |
|
) |
| |
|
overridevirtual |
◆ server_journal
The documentation for this class was generated from the following files: