CatapultServer  v0.5.0.1 (Elephant)
catapult::cache::AccountStateCacheSummaryCacheStorage Class Reference

CacheStorage implementation for saving and loading summary account state cache data. More...

Inheritance diagram for catapult::cache::AccountStateCacheSummaryCacheStorage:
Collaboration diagram for catapult::cache::AccountStateCacheSummaryCacheStorage:

Public Member Functions

void saveAll (const CatapultCacheView &cacheView, io::OutputStream &output) const override
 Saves cache data from cacheView to output. More...
 
void saveSummary (const CatapultCacheDelta &cacheDelta, io::OutputStream &output) const override
 Saves cache (summary) data from cacheDelta to output. More...
 
void loadAll (io::InputStream &input, size_t) override
 Loads cache data from input in batches of batchSize. More...
 
- Public Member Functions inherited from catapult::cache::SummaryCacheStorage< AccountStateCache >
 SummaryCacheStorage (AccountStateCache &cache)
 Creates a storage around cache. More...
 
const std::string & name () const override
 Gets the cache name. More...
 
- Public Member Functions inherited from catapult::cache::CacheStorage
virtual ~CacheStorage ()=default
 

Additional Inherited Members

- Protected Member Functions inherited from catapult::cache::SummaryCacheStorage< AccountStateCache >
const AccountStateCachecache () const
 Gets a typed const reference to the underlying cache. More...
 
AccountStateCachecache ()
 Gets a typed reference to the underlying cache. More...
 

Detailed Description

CacheStorage implementation for saving and loading summary account state cache data.

Member Function Documentation

◆ loadAll()

void catapult::cache::AccountStateCacheSummaryCacheStorage::loadAll ( io::InputStream input,
size_t  batchSize 
)
overridevirtual

Loads cache data from input in batches of batchSize.

Implements catapult::cache::CacheStorage.

Here is the call graph for this function:

◆ saveAll()

void catapult::cache::AccountStateCacheSummaryCacheStorage::saveAll ( const CatapultCacheView cacheView,
io::OutputStream output 
) const
overridevirtual

Saves cache data from cacheView to output.

Implements catapult::cache::CacheStorage.

◆ saveSummary()

void catapult::cache::AccountStateCacheSummaryCacheStorage::saveSummary ( const CatapultCacheDelta cacheDelta,
io::OutputStream output 
) const
overridevirtual

Saves cache (summary) data from cacheDelta to output.

Implements catapult::cache::CacheStorage.

Here is the call graph for this function:

The documentation for this class was generated from the following files: