SWC-DB  v0.5.12 C++ documentations
SWC-DB© (Super Wide Column Database) - High Performance Scalable Database (https://github.com/kashirin-alex/swc-db)
RgrGet_Base.cc
Go to the documentation of this file.
1 /*
2  * SWC-DB© Copyright since 2019 Alex Kashirin <kashirin.alex@gmail.com>
3  * License details at <https://github.com/kashirin-alex/swc-db/#license>
4  */
5 
6 
8 
9 
10 namespace SWC { namespace Comm { namespace Protocol {
11 namespace Mngr { namespace Req {
12 
13 
14 
16  if(get_clients()->stopping()) {
18  callback(rsp);
19  } else if(!valid()) {
21  callback(rsp);
22  } else {
23  get_clients()->remove_mngr(endpoints);
24  endpoints.clear();
25  run();
26  }
27 }
28 
29 
30 
31 }}}}}
SWC::Comm::Protocol::Mngr::Params::RgrGetRsp
Definition: RgrGet.h:53
SWC::Core::Vector::clear
SWC_CAN_INLINE void clear() noexcept(_NoExceptDestructor)
Definition: Vector.h:120
SWC::Comm::Protocol::Mngr::Req::RgrGet_Base::get_clients
virtual SWC::client::Clients::Ptr & get_clients() noexcept=0
RgrGet_Base.h
SWC::Comm::Protocol::Mngr::Req::RgrGet_Base::handle_no_conn
void handle_no_conn() override
Definition: RgrGet_Base.cc:15
SWC::Comm::DispatchHandler::valid
virtual bool valid()
Definition: DispatchHandler.h:28
SWC
The SWC-DB C++ namespace 'SWC'.
Definition: main.cc:12
SWC::Error::CLIENT_STOPPING
@ CLIENT_STOPPING
Definition: Error.h:127
SWC::Comm::Protocol::Mngr::Req::RgrGet_Base::callback
virtual void callback(Params::RgrGetRsp &)=0
SWC::Comm::Protocol::Mngr::Req::RgrGet_Base::endpoints
EndPoints endpoints
Definition: RgrGet_Base.h:45
SWC::Comm::Protocol::Mngr::Req::RgrGet_Base::run
bool run() override
Definition: RgrGet_Base.h:33
SWC::Error::CANCELLED
@ CANCELLED
Definition: Error.h:56