3#include "data/LedgerCacheInterface.hpp"
4#include "data/Types.hpp"
5#include "etl/CacheUpdaterInterface.hpp"
6#include "etl/Models.hpp"
7#include "util/log/Logger.hpp"
16 std::reference_wrapper<data::LedgerCacheInterface> cache_;
28 cache_.get().update(
data.objects,
data.seq);
32 update(uint32_t seq, std::vector<data::LedgerObject>
const& objs)
override
34 cache_.get().update(objs, seq);
38 update(uint32_t seq, std::vector<model::Object>
const& objs)
override
40 cache_.get().update(objs, seq);
46 cache_.get().setFull();
Cache for an entire ledger.
Definition LedgerCacheInterface.hpp:21
void update(uint32_t seq, std::vector< data::LedgerObject > const &objs) override
Update the cache with ledger objects at a specific sequence.
Definition CacheUpdater.hpp:32
void setFull() override
Mark the cache as fully loaded.
Definition CacheUpdater.hpp:44
void update(uint32_t seq, std::vector< model::Object > const &objs) override
Update the cache with model objects at a specific sequence.
Definition CacheUpdater.hpp:38
void update(model::LedgerData const &data) override
Update the cache with ledger data.
Definition CacheUpdater.hpp:26
A simple thread-safe logger for the channel specified in the constructor.
Definition Logger.hpp:77
This namespace implements the data access layer and related components.
Definition AmendmentCenter.cpp:56
An interface for the Cache Updater.
Definition CacheUpdaterInterface.hpp:14
Represents an entire ledger diff worth of transactions and objects.
Definition Models.hpp:124