20 #ifndef RIPPLE_SHAMAP_SHARDFAMILY_H_INCLUDED
21 #define RIPPLE_SHAMAP_SHARDFAMILY_H_INCLUDED
23 #include <ripple/app/main/CollectorManager.h>
24 #include <ripple/shamap/Family.h>
std::shared_ptr< TreeNodeCache > getTreeNodeCache(std::uint32_t ledgerSeq) override
Return a pointer to the Family Tree Node Cache.
Persistency layer for NodeObject.
NodeStore::Database & db_
Provides the beast::insight::Collector service.
std::unordered_map< std::uint32_t, std::shared_ptr< FullBelowCache > > fbCache_
void acquire(uint256 const &hash, std::uint32_t seq)
beast::Journal const & journal() override
std::shared_ptr< FullBelowCache > getFullBelowCache(std::uint32_t ledgerSeq) override
Return a pointer to the Family Full Below Cache.
NodeStore::Database const & db() const override
A generic endpoint for log messages.
std::unordered_map< std::uint32_t, std::shared_ptr< TreeNodeCache > > tnCache_
int getFullBelowCacheSize()
Return the number of entries in the cache.
Use hash_* containers for keys that do not need a cryptographically secure hashing algorithm.
std::pair< int, int > getTreeNodeCacheSize()
Return a pair where the first item is the number of items cached and the second item is the number of...
const std::chrono::seconds tnTargetAge_
NodeStore::Database & db() override
void missingNodeAcquireByHash(uint256 const &hash, std::uint32_t seq) override
Acquire ledger that has a missing node by ledger hash.
ShardFamily & operator=(ShardFamily const &)=delete
bool isShardBacked() const override
void missingNodeAcquireBySeq(std::uint32_t seq, uint256 const &nodeHash) override
Acquire ledger that has a missing node by ledger sequence.