CatapultServer  v0.5.0.1 (Elephant)
catapult::mongo::plugins::MongoLockInfoCacheStorageTraits< TLockInfoTraits > Struct Template Reference

Mongo lock info cache storage traits. More...

Inheritance diagram for catapult::mongo::plugins::MongoLockInfoCacheStorageTraits< TLockInfoTraits >:
Collaboration diagram for catapult::mongo::plugins::MongoLockInfoCacheStorageTraits< TLockInfoTraits >:

Public Types

using CacheDeltaType = typename TLockInfoTraits::CacheDeltaType
 
using KeyType = typename TLockInfoTraits::KeyType
 
using ModelType = typename TLockInfoTraits::ModelType
 

Static Public Member Functions

static auto MapToMongoId (const KeyType &key)
 Maps key to a mongo identifier. More...
 
static auto MapToMongoDocument (const ModelType &lockInfo, model::NetworkIdentifier networkIdentifier)
 Maps lockInfo given network networkIdentifier to a mongo document. More...
 

Detailed Description

template<typename TLockInfoTraits>
struct catapult::mongo::plugins::MongoLockInfoCacheStorageTraits< TLockInfoTraits >

Mongo lock info cache storage traits.

Member Typedef Documentation

◆ CacheDeltaType

template<typename TLockInfoTraits >
using catapult::mongo::plugins::MongoLockInfoCacheStorageTraits< TLockInfoTraits >::CacheDeltaType = typename TLockInfoTraits::CacheDeltaType

◆ KeyType

template<typename TLockInfoTraits >
using catapult::mongo::plugins::MongoLockInfoCacheStorageTraits< TLockInfoTraits >::KeyType = typename TLockInfoTraits::KeyType

◆ ModelType

template<typename TLockInfoTraits >
using catapult::mongo::plugins::MongoLockInfoCacheStorageTraits< TLockInfoTraits >::ModelType = typename TLockInfoTraits::ModelType

Member Function Documentation

◆ MapToMongoDocument()

template<typename TLockInfoTraits >
static auto catapult::mongo::plugins::MongoLockInfoCacheStorageTraits< TLockInfoTraits >::MapToMongoDocument ( const ModelType lockInfo,
model::NetworkIdentifier  networkIdentifier 
)
inlinestatic

Maps lockInfo given network networkIdentifier to a mongo document.

Here is the call graph for this function:

◆ MapToMongoId()

template<typename TLockInfoTraits >
static auto catapult::mongo::plugins::MongoLockInfoCacheStorageTraits< TLockInfoTraits >::MapToMongoId ( const KeyType key)
inlinestatic

Maps key to a mongo identifier.

Here is the call graph for this function:

The documentation for this struct was generated from the following file: