|
Clio
develop
The XRP Ledger API server.
|
Interface for coordinating cache loading permissions across a cluster. More...
#include <LedgerCacheLoadingState.hpp>

Public Member Functions | |
| virtual void | allowLoading ()=0 |
| Allow this node to begin loading the cache from the backend. | |
| virtual bool | isLoadingAllowed () const =0 |
| Check whether loading has been permitted. | |
| virtual void | waitForLoadingAllowed () const =0 |
| Block until loading is permitted. | |
| virtual bool | isCurrentlyLoading () const =0 |
| Check whether the cache is currently being loaded from the backend. | |
| virtual std::unique_ptr< LedgerCacheLoadingStateInterface > | clone () const =0 |
| Create a clone that shares the same loading-allowed flag. | |
Interface for coordinating cache loading permissions across a cluster.
Controls whether this node is allowed to load the ledger cache from the backend. In a cluster, at most one node should load the cache at a time; this state is used to gate loading until permission is granted.
|
pure virtual |
Allow this node to begin loading the cache from the backend.
Implemented in data::LedgerCacheLoadingState.
|
nodiscardpure virtual |
Create a clone that shares the same loading-allowed flag.
isLoadingAllowed_ atomic, so allowLoading() on any copy is visible to all clones. Implemented in data::LedgerCacheLoadingState.
|
nodiscardpure virtual |
Check whether the cache is currently being loaded from the backend.
Implemented in data::LedgerCacheLoadingState.
|
nodiscardpure virtual |
Check whether loading has been permitted.
Implemented in data::LedgerCacheLoadingState.
|
pure virtual |
Block until loading is permitted.
Implemented in data::LedgerCacheLoadingState.