Clio
develop
The XRP Ledger API server.
Theme:
Default
Round
Robot
Toggle main menu visibility
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
9
namespace
etl
{
10
14
struct
CacheUpdaterInterface
{
15
virtual
~CacheUpdaterInterface
() =
default
;
16
21
virtual
void
22
update
(
model::LedgerData
const
&
data
) = 0;
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
data
This namespace implements the data access layer and related components.
Definition
AmendmentCenter.cpp:56
etl
This namespace contains everything to do with the ETL and ETL sources.
Definition
AmendmentBlockHandlerInterface.hpp:6
etl::CacheUpdaterInterface
An interface for the Cache Updater.
Definition
CacheUpdaterInterface.hpp:14
etl::CacheUpdaterInterface::update
virtual void update(uint32_t seq, std::vector< model::Object > const &objs)=0
Update the cache with model objects at a specific sequence.
etl::CacheUpdaterInterface::update
virtual void update(model::LedgerData const &data)=0
Update the cache with ledger data.
etl::CacheUpdaterInterface::setFull
virtual void setFull()=0
Mark the cache as fully loaded.
etl::CacheUpdaterInterface::update
virtual void update(uint32_t seq, std::vector< data::LedgerObject > const &objs)=0
Update the cache with ledger objects at a specific sequence.
etl::model::LedgerData
Represents an entire ledger diff worth of transactions and objects.
Definition
Models.hpp:129
src
etl
CacheUpdaterInterface.hpp
Generated by
1.17.0