hyperledger/iroha
Iroha - A simple, decentralized ledger http://iroha.tech
iroha::ametsuchi::FailoverCallback Class Reference
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
 
virtual void started ()
 
virtual void finished (soci::session &)
 
virtual void failed (bool &should_reconnect, std::string &)
 
virtual void aborted ()
 

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

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

Here is the call graph for this function:

iroha::ametsuchi::FailoverCallback::FailoverCallback ( const FailoverCallback )
delete

Member Function Documentation

virtual void iroha::ametsuchi::FailoverCallback::aborted ( )
inlinevirtual

Here is the call graph for this function:

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

Here is the caller graph for this function:

virtual void iroha::ametsuchi::FailoverCallback::started ( )
inlinevirtual

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