hyperledger/iroha
Iroha - A simple, decentralized ledger http://iroha.tech
iroha::ametsuchi::FailoverCallback Class Referencefinal

#include "failover_callback.hpp"

Inheritance diagram for iroha::ametsuchi::FailoverCallback:
Inheritance graph
Collaboration diagram for iroha::ametsuchi::FailoverCallback:
Collaboration graph

Public Types

using InitFunctionType = std::function< void(soci::session &)>
 

Public Member Functions

 FailoverCallback (soci::session &connection, InitFunctionType init, std::string connection_options, std::unique_ptr< ReconnectionStrategy > reconnection_strategy, logger::LoggerPtr log)
 
 FailoverCallback (const FailoverCallback &)=delete
 
FailoverCallbackoperator= (const FailoverCallback &)=delete
 
void started () override
 
void finished (soci::session &) override
 
void failed (bool &should_reconnect, std::string &) override
 
void aborted () override
 

Detailed Description

Class provides reconnection callback for postgresql session Note: the class is a workaround for SOCI 4.0, support in future versions is not guaranteed

Member Typedef Documentation

using iroha::ametsuchi::FailoverCallback::InitFunctionType = std::function<void(soci::session &)>

Constructor & Destructor Documentation

FailoverCallback::FailoverCallback ( soci::session &  connection,
InitFunctionType  init,
std::string  connection_options,
std::unique_ptr< ReconnectionStrategy reconnection_strategy,
logger::LoggerPtr  log 
)
iroha::ametsuchi::FailoverCallback::FailoverCallback ( const FailoverCallback )
delete

Member Function Documentation

void FailoverCallback::aborted ( )
override
void FailoverCallback::failed ( bool &  should_reconnect,
std::string &   
)
override
void FailoverCallback::finished ( soci::session &  )
override
FailoverCallback& iroha::ametsuchi::FailoverCallback::operator= ( const FailoverCallback )
delete
void FailoverCallback::started ( )
override

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