CatapultServer
v0.5.0.1 (Elephant)
|
Synchronized cache composed of namespace information.
Definition: NamespaceCache.h:71
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
const NamespaceCache & cache() const
Gets a typed const reference to the underlying cache.
Definition: SummaryAwareSubCachePluginAdapter.h:43
Specialized namespace cache sub cache plugin.
Definition: NamespaceCacheSubCachePlugin.h:45
void loadAll(io::InputStream &input, size_t) override
Loads cache data from input in batches of batchSize.
Definition: NamespaceCacheSubCachePlugin.cpp:36
void Write64(TIo &output, uint64_t value)
Writes value into output.
Definition: PodIoUtils.h:36
Locked view on top of the catapult cache.
Definition: CatapultCacheView.h:36
Cache configuration.
Definition: CacheConfiguration.h:37
CacheStorage implementation for saving and loading summary namespace cache data.
Definition: NamespaceCacheSubCachePlugin.h:29
void saveSummary(const CatapultCacheDelta &cacheDelta, io::OutputStream &output) const override
Saves cache (summary) data from cacheDelta to output.
Definition: NamespaceCacheSubCachePlugin.cpp:29
#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
Custom sub view options.
Definition: NamespaceCacheTypes.h:87
void saveAll(const CatapultCacheView &cacheView, io::OutputStream &output) const override
Saves cache data from cacheView to output.
Definition: NamespaceCacheSubCachePlugin.cpp:25
NamespaceCacheSubCachePlugin(const CacheConfiguration &config, const NamespaceCacheTypes::Options &options)
Creates a plugin around config and options.
Definition: NamespaceCacheSubCachePlugin.cpp:42
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