CatapultServer
v0.5.0.1 (Elephant)
|
std::unordered_set< Address, utils::ArrayHasher< Address > > AddressSet
Unordered set of addresses.
Definition: ContainerTypes.h:41
const TCache::CacheDeltaType & sub() const
Gets a specific sub cache delta view.
Definition: CatapultCacheDelta.h:47
Delta on top of a catapult cache.
Definition: CatapultCacheDelta.h:31
CacheStorage implementation for saving and loading summary cache data.
Definition: SummaryAwareSubCachePluginAdapter.h:28
virtual void write(const RawBuffer &buffer)=0
Custom sub view options.
Definition: AccountStateCacheTypes.h:79
const AccountStateCache & cache() const
Gets a typed const reference to the underlying cache.
Definition: SummaryAwareSubCachePluginAdapter.h:43
AccountStateCacheSubCachePlugin(const CacheConfiguration &config, const AccountStateCacheTypes::Options &options)
Creates a plugin around config and options.
Definition: AccountStateCacheSubCachePlugin.cpp:52
void Write64(TIo &output, uint64_t value)
Writes value into output.
Definition: PodIoUtils.h:36
Specialized account state cache sub cache plugin.
Definition: AccountStateCacheSubCachePlugin.h:45
Locked view on top of the catapult cache.
Definition: CatapultCacheView.h:36
Synchronized cache composed of stateful account information.
Definition: AccountStateCache.h:72
void loadAll(io::InputStream &input, size_t) override
Loads cache data from input in batches of batchSize.
Definition: AccountStateCacheSubCachePlugin.cpp:39
CacheStorage implementation for saving and loading summary account state cache data.
Definition: AccountStateCacheSubCachePlugin.h:29
Cache configuration.
Definition: CacheConfiguration.h:37
#define CATAPULT_THROW_INVALID_ARGUMENT(MESSAGE)
Macro used to throw a catapult invalid argument.
Definition: exceptions.h:179
Definition: AddressExtractionExtension.cpp:28
auto Read64(TIo &input)
Reads value from input.
Definition: PodIoUtils.h:66
void saveSummary(const CatapultCacheDelta &cacheDelta, io::OutputStream &output) const override
Saves cache (summary) data from cacheDelta to output.
Definition: AccountStateCacheSubCachePlugin.cpp:29
void saveAll(const CatapultCacheView &cacheView, io::OutputStream &output) const override
Saves cache data from cacheView to output.
Definition: AccountStateCacheSubCachePlugin.cpp:25
Writer interface.
Definition: Stream.h:41
Specialized sub cache plugin adapter that provides proper handling of summary cache state.
Definition: SummaryAwareSubCachePluginAdapter.h:59
void init(TArgs &&... args)
Initializes the underlying cache with args.
Definition: SynchronizedCache.h:288