|
SWC-DB
v0.5.12 C++ documentations
SWC-DB© (Super Wide Column Database) - High Performance Scalable Database (https://github.com/kashirin-alex/swc-db)
|
Go to the documentation of this file.
6 #ifndef swcdb_db_protocol_mngr_req_MngrActive_h
7 #define swcdb_db_protocol_mngr_req_MngrActive_h
16 namespace SWC {
namespace Comm {
namespace Protocol {
17 namespace Mngr {
namespace Req {
22 typedef std::shared_ptr<MngrActive>
Ptr;
42 const uint8_t& a_role,
const cid_t& a_cid,
46 Params::MngrActiveReq(a_role, a_cid),
53 timer(asio::high_resolution_timer(
54 clients->get_mngr_io()->executor())),
76 asio::high_resolution_timer
timer;
85 #ifdef SWC_IMPL_SOURCE
89 #endif // swcdb_db_protocol_mngr_req_MngrActive_h
SWC_CAN_INLINE MngrActive(const SWC::client::Clients::Ptr &a_clients, const uint8_t &a_role, const cid_t &a_cid, const DispatchHandler::Ptr &a_hdlr, uint32_t a_timeout_ms)
static constexpr const cid_t NO_CID
Comm::client::ConnQueue::ReqBase ReqBase
static SWC_CAN_INLINE Ptr make(const SWC::client::Clients::Ptr &clients, const uint8_t &a_role, const DispatchHandler::Ptr &hdlr, uint32_t timeout_ms=60000)
DispatchHandler::Ptr hdlr
SWC::client::Mngr::Groups::GroupHost group_host
std::shared_ptr< MngrActive > Ptr
void run_within(uint32_t t_ms=1000)
const uint32_t timeout_ms
SWC::client::Clients::Ptr clients
The SWC-DB C++ namespace 'SWC'.
virtual ~MngrActive() noexcept
static SWC_CAN_INLINE Ptr make(const SWC::client::Clients::Ptr &clients, const cid_t &a_cid, const DispatchHandler::Ptr &hdlr, uint32_t timeout_ms=60000)
std::shared_ptr< ConnHandler > ConnHandlerPtr
void handle_no_conn() override
asio::high_resolution_timer timer
std::shared_ptr< Event > Ptr
std::shared_ptr< ConnQueueReqBase > Ptr
void handle(ConnHandlerPtr conn, const Event::Ptr &ev) override
std::shared_ptr< DispatchHandler > Ptr
SWC::client::Mngr::Hosts hosts