#include <joedb/concurrency/File_Connection.h>
|
| static Connection | dummy |
| | Since this class has no internal state, this global variable can be used instead of creating an instance.
|
| |
| | Connection ()=default |
| |
| static void | content_mismatch () |
| | Called by handshake when the file and the connection do not match.
|
| |
Definition at line 9 of file File_Connection.h.
◆ Pullonly_Journal_Connection()
| joedb::Pullonly_Journal_Connection::Pullonly_Journal_Connection |
( |
Readonly_Journal & |
server_journal | ) |
|
|
inline |
◆ handshake()
- Parameters
-
| client_journal | may be used to check matching content |
| content_check | indicates how matching content is tested |
- Returns
- connection checkpoint
Reimplemented from joedb::Connection.
Definition at line 6 of file File_Connection.cpp.
◆ 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 |
- Returns
- connection checkpoint
Reimplemented from joedb::Connection.
Definition at line 45 of file File_Connection.cpp.
◆ push()
| int64_t joedb::Pullonly_Journal_Connection::push |
( |
const Readonly_Journal & |
client_journal, |
|
|
const int64_t |
from, |
|
|
const int64_t |
until, |
|
|
Unlock_Action |
unlock_action |
|
) |
| |
|
overridevirtual |
◆ server_journal
The documentation for this class was generated from the following files: