SWC-DB  v0.5.12 C++ documentations
SWC-DB© (Super Wide Column Database) - High Performance Scalable Database (https://github.com/kashirin-alex/swc-db)
SWC::Comm::ResponseCallback Class Reference

#include <swcdb/core/comm/ResponseCallback.h>

+ Inheritance diagram for SWC::Comm::ResponseCallback:
+ Collaboration diagram for SWC::Comm::ResponseCallback:

Public Types

typedef std::shared_ptr< ResponseCallbackPtr
 

Public Member Functions

 ResponseCallback (const ConnHandlerPtr &conn, const Event::Ptr &ev)
 
virtual ~ResponseCallback () noexcept
 
virtual void run ()
 
virtual bool expired (int64_t within=0) const noexcept
 
virtual void response (int &err)
 
virtual void response_ok ()
 
virtual void send_error (int err, const std::string &msg)
 

Protected Attributes

ConnHandlerPtr m_conn
 
Event::Ptr m_ev
 

Detailed Description

Definition at line 14 of file ResponseCallback.h.

Member Typedef Documentation

◆ Ptr

Definition at line 18 of file ResponseCallback.h.

Constructor & Destructor Documentation

◆ ResponseCallback()

SWC::Comm::ResponseCallback::ResponseCallback ( const ConnHandlerPtr conn,
const Event::Ptr ev 
)
inline

Definition at line 20 of file ResponseCallback.h.

◆ ~ResponseCallback()

virtual SWC::Comm::ResponseCallback::~ResponseCallback ( )
inlinevirtualnoexcept

Definition at line 24 of file ResponseCallback.h.

Member Function Documentation

◆ expired()

bool SWC::Comm::ResponseCallback::expired ( int64_t  within = 0) const
virtualnoexcept

Reimplemented in SWC::Ranger::CompactRange.

Definition at line 13 of file ResponseCallback.cc.

Referenced by SWC::Ranger::Callback::RangeQuerySelectDeleting::update(), and SWC::Ranger::Callback::RangeQuerySelectUpdating::update().

+ Here is the caller graph for this function:

◆ response()

void SWC::Comm::ResponseCallback::response ( int &  err)
virtual

Reimplemented in SWC::Ranger::ReqScanTest, SWC::Ranger::CompactRange, SWC::Ranger::Callback::RangeQuerySelect, SWC::Ranger::Callback::RangeLocateScan, SWC::DB::Cells::ReqScanTest, and SWC::Ranger::Callback::RangeUnloadInternal.

Definition at line 18 of file ResponseCallback.cc.

References response_ok(), and send_error().

+ Here is the call graph for this function:

◆ response_ok()

virtual void SWC::Comm::ResponseCallback::response_ok ( )
inlinevirtual

Reimplemented in SWC::Ranger::Callback::RangeUnloadInternal.

Definition at line 32 of file ResponseCallback.h.

References m_conn, and m_ev.

Referenced by SWC::Ranger::Callback::ColumnDelete::complete(), and response().

+ Here is the caller graph for this function:

◆ run()

virtual void SWC::Comm::ResponseCallback::run ( )
inlinevirtual

◆ send_error()

virtual void SWC::Comm::ResponseCallback::send_error ( int  err,
const std::string &  msg 
)
inlinevirtual

Reimplemented in SWC::Ranger::Callback::RangeUnloadInternal.

Definition at line 36 of file ResponseCallback.h.

References m_conn, and m_ev.

Referenced by response().

+ Here is the caller graph for this function:

Member Data Documentation

◆ m_conn

◆ m_ev


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