Clio  develop
The XRP Ledger API server.
Loading...
Searching...
No Matches
CacheUpdaterInterface.hpp
1#pragma once
2
3#include "data/Types.hpp"
4#include "etl/Models.hpp"
5
6#include <cstdint>
7#include <vector>
8
9namespace etl {
10
15 virtual ~CacheUpdaterInterface() = default;
16
21 virtual void
23
29 virtual void
30 update(uint32_t seq, std::vector<data::LedgerObject> const& objs) = 0;
31
37 virtual void
38 update(uint32_t seq, std::vector<model::Object> const& objs) = 0;
39
43 virtual void
44 setFull() = 0;
45};
46
47} // namespace etl
This namespace implements the data access layer and related components.
Definition AmendmentCenter.cpp:56
An interface for the Cache Updater.
Definition CacheUpdaterInterface.hpp:14
virtual void update(uint32_t seq, std::vector< model::Object > const &objs)=0
Update the cache with model objects at a specific sequence.
virtual void update(model::LedgerData const &data)=0
Update the cache with ledger data.
virtual void setFull()=0
Mark the cache as fully loaded.
virtual void update(uint32_t seq, std::vector< data::LedgerObject > const &objs)=0
Update the cache with ledger objects at a specific sequence.
Represents an entire ledger diff worth of transactions and objects.
Definition Models.hpp:124