#include <joedb/concurrency/Server_Connection.h>
|
| Server_Connection (Channel &channel) |
|
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 wait) override |
| Pull new data from the connection.
|
|
int64_t | lock_pull (Writable_Journal &client_journal, std::chrono::milliseconds wait=std::chrono::milliseconds{0}) override |
| Fused lock_pull, executed at the start of a write transaction.
|
|
int64_t | get_checkpoint (Readonly_Journal &client_journal, std::chrono::milliseconds wait) override |
| Get new connection checkpoint without pulling.
|
|
int64_t | push_until (Readonly_Journal &client_journal, int64_t server_position, int64_t until_position, bool unlock_after) override |
| Push new data to the connection.
|
|
void | unlock () override |
| Can be used to cancel a transaction without pushing.
|
|
| Server_Client (Channel &channel) |
|
void | set_log (std::ostream *stream) |
|
void | set_keep_alive_interval (std::chrono::seconds duration) |
|
int64_t | get_session_id () const |
|
Thread_Safe_Channel & | get_channel () |
|
void | ping () |
|
| ~Server_Client () |
|
int64_t | push (Readonly_Journal &client_journal, int64_t from_checkpoint, bool unlock_after) |
| Shortcut to call push_until until the client checkpoint.
|
|
virtual | ~Connection () |
|
Definition at line 10 of file Server_Connection.h.
◆ Server_Connection()
joedb::Server_Connection::Server_Connection |
( |
Channel & |
channel | ) |
|
|
inline |
◆ check_matching_content()
bool joedb::Server_Connection::check_matching_content |
( |
Readonly_Journal & |
client_journal, |
|
|
int64_t |
server_checkpoint |
|
) |
| |
|
protected |
◆ get_checkpoint()
int64_t joedb::Server_Connection::get_checkpoint |
( |
Readonly_Journal & |
client_journal, |
|
|
std::chrono::milliseconds |
wait |
|
) |
| |
|
overridevirtual |
◆ handshake()
int64_t joedb::Server_Connection::handshake |
( |
Readonly_Journal & |
client_journal, |
|
|
bool |
content_check |
|
) |
| |
|
overridevirtual |
◆ lock_pull()
int64_t joedb::Server_Connection::lock_pull |
( |
Writable_Journal & |
client_journal, |
|
|
std::chrono::milliseconds |
wait = std::chrono::milliseconds{0} |
|
) |
| |
|
overridevirtual |
◆ pull() [1/2]
int64_t joedb::Server_Connection::pull |
( |
Writable_Journal & |
client_journal, |
|
|
std::chrono::milliseconds |
wait |
|
) |
| |
|
overridevirtual |
◆ pull() [2/2]
int64_t joedb::Server_Connection::pull |
( |
Writable_Journal * |
client_journal, |
|
|
std::chrono::milliseconds |
wait, |
|
|
char |
pull_type |
|
) |
| |
|
protected |
◆ push_until()
int64_t joedb::Server_Connection::push_until |
( |
Readonly_Journal & |
client_journal, |
|
|
int64_t |
from_checkpoint, |
|
|
int64_t |
until_checkpoint, |
|
|
bool |
unlock_after |
|
) |
| |
|
overridevirtual |
◆ unlock()
void joedb::Server_Connection::unlock |
( |
| ) |
|
|
overridevirtual |
The documentation for this class was generated from the following files: