22#include "data/LedgerCacheInterface.hpp"
23#include "data/Types.hpp"
24#include "etlng/CacheUpdaterInterface.hpp"
25#include "etlng/Models.hpp"
26#include "util/log/Logger.hpp"
32namespace etlng::impl {
35 std::reference_wrapper<data::LedgerCacheInterface> cache_;
47 cache_.get().update(
data.objects,
data.seq);
51 update(uint32_t seq, std::vector<data::LedgerObject>
const& objs)
override
53 cache_.get().update(objs, seq);
57 update(uint32_t seq, std::vector<model::Object>
const& objs)
override
59 cache_.get().update(objs, seq);
65 cache_.get().setFull();
Cache for an entire ledger.
Definition LedgerCacheInterface.hpp:38
Definition CacheUpdater.hpp:34
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:57
void update(model::LedgerData const &data) override
Update the cache with ledger data.
Definition CacheUpdater.hpp:45
void setFull() override
Mark the cache as fully loaded.
Definition CacheUpdater.hpp:63
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:51
A simple thread-safe logger for the channel specified in the constructor.
Definition Logger.hpp:111
This namespace implements the data access layer and related components.
Definition AmendmentCenter.cpp:70
An interface for the Cache Updater.
Definition CacheUpdaterInterface.hpp:33
Represents an entire ledger diff worth of transactions and objects.
Definition Models.hpp:143