xrpld
Loading...
Searching...
No Matches
xrpl::SHAMapStoreImp::SavedStateDB Class Reference
Collaboration diagram for xrpl::SHAMapStoreImp::SavedStateDB:

Public Member Functions

 SavedStateDB ()
void init (BasicConfig const &config, std::string const &dbName)
LedgerIndex getCanDelete ()
LedgerIndex setCanDelete (LedgerIndex canDelete)
SavedState getState ()
void setState (SavedState const &state)
void setLastRotated (LedgerIndex seq)

Public Attributes

soci::session sqlDb
std::mutex mutex
beast::Journal const journal

Detailed Description

Definition at line 24 of file SHAMapStoreImp.h.

Constructor & Destructor Documentation

◆ SavedStateDB()

xrpl::SHAMapStoreImp::SavedStateDB::SavedStateDB ( )
explicit

Definition at line 33 of file SHAMapStoreImp.h.

Member Function Documentation

◆ init()

void xrpl::SHAMapStoreImp::SavedStateDB::init ( BasicConfig const & config,
std::string const & dbName )

Definition at line 46 of file SHAMapStoreImp.cpp.

◆ getCanDelete()

LedgerIndex xrpl::SHAMapStoreImp::SavedStateDB::getCanDelete ( )

Definition at line 53 of file SHAMapStoreImp.cpp.

◆ setCanDelete()

LedgerIndex xrpl::SHAMapStoreImp::SavedStateDB::setCanDelete ( LedgerIndex canDelete)

Definition at line 61 of file SHAMapStoreImp.cpp.

◆ getState()

SavedState xrpl::SHAMapStoreImp::SavedStateDB::getState ( )

Definition at line 69 of file SHAMapStoreImp.cpp.

◆ setState()

void xrpl::SHAMapStoreImp::SavedStateDB::setState ( SavedState const & state)

Definition at line 77 of file SHAMapStoreImp.cpp.

◆ setLastRotated()

void xrpl::SHAMapStoreImp::SavedStateDB::setLastRotated ( LedgerIndex seq)

Definition at line 84 of file SHAMapStoreImp.cpp.

Member Data Documentation

◆ sqlDb

soci::session xrpl::SHAMapStoreImp::SavedStateDB::sqlDb

Definition at line 27 of file SHAMapStoreImp.h.

◆ mutex

std::mutex xrpl::SHAMapStoreImp::SavedStateDB::mutex

Definition at line 28 of file SHAMapStoreImp.h.

◆ journal

beast::Journal const xrpl::SHAMapStoreImp::SavedStateDB::journal

Definition at line 29 of file SHAMapStoreImp.h.