|
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.
8 namespace SWC {
namespace Comm {
namespace client {
23 Callback(
ConnQueuePtr&& a_ptr) noexcept : ptr(std::move(a_ptr)) { }
25 Callback(Callback&& other) noexcept : ptr(std::move(other.ptr)) { }
26 Callback(
const Callback&) =
delete;
28 Callback&
operator=(
const Callback&) =
delete;
29 ~Callback() noexcept { }
34 queues->service->get_connection<Callback>(
36 std::chrono::milliseconds(
queues->cfg_conn_timeout->get()),
37 queues->cfg_conn_probes->get(),
48 out <<
"ConnQueues: ";
50 for(
auto& host : *
this) {
58 for(
auto& host : *
this) {
72 host = std::move(*it);
90 host = std::move(*it);
SWC_CAN_INLINE iterator erase(size_type offset) noexcept(_NoExceptMoveAssign &&_NoExceptDestructor)
const Serialized::Ptr service
void remove(const EndPoints &endpoints)
void set(const ConnHandlerPtr &conn)
bool SWC_PURE_FUNC has_endpoint(const EndPoint &e1, const EndPoints &endpoints_in) noexcept
Host::Ptr get(const EndPoints &endpoints)
const ConnQueuesPtr queues
std::shared_ptr< Host > Ptr
The SWC-DB C++ namespace 'SWC'.
const Config::Property::Value_int32_g::Ptr cfg_again_delay_ms
void print(std::ostream &out)
const EndPoints endpoints
void close_issued() override
std::shared_ptr< ConnHandler > ConnHandlerPtr
constexpr SWC_CAN_INLINE const_iterator cend() const noexcept
constexpr SWC_CAN_INLINE const_iterator cbegin() const noexcept
const Config::Property::Value_int32_g::Ptr cfg_keepalive_ms
SWC_CAN_INLINE reference emplace_back(ArgsT &&... args)
ConnQueue & operator=(ConnQueue &&)=delete
std::shared_ptr< ConnQueue > ConnQueuePtr