CatapultServer
v0.5.0.1 (Elephant)
|
Sub cache plugin that can be added to the main catapult cache. More...
Public Member Functions | |
virtual | ~SubCachePlugin ()=default |
virtual const std::string & | name () const =0 |
Gets the cache name. More... | |
virtual size_t | id () const =0 |
Gets the cache id. More... | |
virtual std::unique_ptr< const SubCacheView > | createView () const =0 |
Returns a locked cache view based on this cache. More... | |
virtual std::unique_ptr< SubCacheView > | createDelta ()=0 |
virtual std::unique_ptr< DetachedSubCacheView > | createDetachedDelta () const =0 |
virtual void | commit ()=0 |
Commits all pending changes to the underlying storage. More... | |
virtual const void * | get () const =0 |
Returns a const pointer to the underlying cache. More... | |
virtual std::unique_ptr< CacheStorage > | createStorage ()=0 |
Returns a cache storage based on this cache. More... | |
virtual std::unique_ptr< CacheChangesStorage > | createChangesStorage () const =0 |
Returns a cache changes storage based on this cache. More... | |
Sub cache plugin that can be added to the main catapult cache.
|
virtualdefault |
|
pure virtual |
Commits all pending changes to the underlying storage.
Implemented in catapult::cache::SubCachePluginAdapter< TCache, TStorageTraits >, and catapult::cache::SubCachePluginAdapter< BlockDifficultyCache, BlockDifficultyCacheStorage >.
|
pure virtual |
Returns a cache changes storage based on this cache.
Implemented in catapult::cache::SubCachePluginAdapter< TCache, TStorageTraits >, and catapult::cache::SubCachePluginAdapter< BlockDifficultyCache, BlockDifficultyCacheStorage >.
|
pure virtual |
Returns a locked cache delta based on this cache.
Implemented in catapult::cache::SubCachePluginAdapter< TCache, TStorageTraits >, and catapult::cache::SubCachePluginAdapter< BlockDifficultyCache, BlockDifficultyCacheStorage >.
|
pure virtual |
Returns a lockable cache delta based on this cache but without the ability to commit any changes to the original cache.
Implemented in catapult::cache::SubCachePluginAdapter< TCache, TStorageTraits >, and catapult::cache::SubCachePluginAdapter< BlockDifficultyCache, BlockDifficultyCacheStorage >.
|
pure virtual |
Returns a cache storage based on this cache.
Implemented in catapult::cache::SubCachePluginAdapter< TCache, TStorageTraits >, catapult::cache::SubCachePluginAdapter< BlockDifficultyCache, BlockDifficultyCacheStorage >, catapult::cache::SummaryAwareSubCachePluginAdapter< TCache, TStorageTraits, TSummaryCacheStorage >, and catapult::cache::BlockDifficultyCacheSubCachePlugin.
|
pure virtual |
Returns a locked cache view based on this cache.
Implemented in catapult::cache::SubCachePluginAdapter< TCache, TStorageTraits >, and catapult::cache::SubCachePluginAdapter< BlockDifficultyCache, BlockDifficultyCacheStorage >.
|
pure virtual |
Returns a const pointer to the underlying cache.
Implemented in catapult::cache::SubCachePluginAdapter< TCache, TStorageTraits >, and catapult::cache::SubCachePluginAdapter< BlockDifficultyCache, BlockDifficultyCacheStorage >.
|
pure virtual |
Gets the cache id.
Implemented in catapult::cache::SubCachePluginAdapter< TCache, TStorageTraits >, and catapult::cache::SubCachePluginAdapter< BlockDifficultyCache, BlockDifficultyCacheStorage >.
|
pure virtual |
Gets the cache name.
Implemented in catapult::cache::SubCachePluginAdapter< TCache, TStorageTraits >, and catapult::cache::SubCachePluginAdapter< BlockDifficultyCache, BlockDifficultyCacheStorage >.