#include "failover_callback.hpp"


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 | |
| FailoverCallback & | operator= (const FailoverCallback &)=delete |
| void | started () override |
| void | finished (soci::session &) override |
| void | failed (bool &should_reconnect, std::string &) override |
| void | aborted () override |
Class provides reconnection callback for postgresql session Note: the class is a workaround for SOCI 4.0, support in future versions is not guaranteed
| using iroha::ametsuchi::FailoverCallback::InitFunctionType = std::function<void(soci::session &)> |
| FailoverCallback::FailoverCallback | ( | soci::session & | connection, |
| InitFunctionType | init, | ||
| std::string | connection_options, | ||
| std::unique_ptr< ReconnectionStrategy > | reconnection_strategy, | ||
| logger::LoggerPtr | log | ||
| ) |
|
delete |
|
override |
|
override |
|
override |
|
delete |
|
override |