CatapultServer  v0.5.0.1 (Elephant)
catapult::mongo::MongoTransactionPluginFactory Class Reference

Factory for creating mongo transaction plugins. More...

Classes

class  BasicTransactionPluginT
 
class  TransactionPluginT
 

Static Public Member Functions

template<typename TEmbeddedTransaction , typename TStreamEmbeddedFunc >
static std::unique_ptr< EmbeddedTransactionPluginCreateEmbedded (TStreamEmbeddedFunc streamEmbeddedFunc)
 Creates an embedded transaction plugin around streamEmbeddedFunc. More...
 
template<typename TTransaction , typename TEmbeddedTransaction , typename TStreamFunc , typename TStreamEmbeddedFunc >
static std::unique_ptr< TransactionPluginCreate (TStreamFunc streamFunc, TStreamEmbeddedFunc streamEmbeddedFunc)
 Creates a transaction plugin that supports embedding around streamFunc and streamEmbeddedFunc. More...
 

Private Types

using TransactionPlugin = MongoTransactionPlugin
 
using EmbeddedTransactionPlugin = EmbeddedMongoTransactionPlugin
 
template<typename TEmbeddedTransaction >
using EmbeddedTransactionPluginT = BasicTransactionPluginT< model::EmbeddedTransaction, TEmbeddedTransaction, EmbeddedTransactionPlugin >
 

Detailed Description

Factory for creating mongo transaction plugins.

Member Typedef Documentation

◆ EmbeddedTransactionPlugin

◆ EmbeddedTransactionPluginT

◆ TransactionPlugin

Member Function Documentation

◆ Create()

template<typename TTransaction , typename TEmbeddedTransaction , typename TStreamFunc , typename TStreamEmbeddedFunc >
static std::unique_ptr<TransactionPlugin> catapult::mongo::MongoTransactionPluginFactory::Create ( TStreamFunc  streamFunc,
TStreamEmbeddedFunc  streamEmbeddedFunc 
)
inlinestatic

Creates a transaction plugin that supports embedding around streamFunc and streamEmbeddedFunc.

◆ CreateEmbedded()

template<typename TEmbeddedTransaction , typename TStreamEmbeddedFunc >
static std::unique_ptr<EmbeddedTransactionPlugin> catapult::mongo::MongoTransactionPluginFactory::CreateEmbedded ( TStreamEmbeddedFunc  streamEmbeddedFunc)
inlinestatic

Creates an embedded transaction plugin around streamEmbeddedFunc.


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