caosdb/handler_interface.h

namespace caosdb::transaction

Creation and execution of transactions.

Author

Timm Fitschen

Date

2021-08-05

Typedefs

using HandlerPtr = std::unique_ptr<HandlerInterface>
using HandlerTag = HandlerPtr*

Variables

static const std::string logger_name = "caosdb::transaction"
class HandlerInterface

Subclassed by caosdb::transaction::DownloadRequestHandler, caosdb::transaction::UnaryRpcHandler, caosdb::transaction::UploadRequestHandler

Public Functions

inline HandlerInterface()
virtual ~HandlerInterface() = default
virtual void Start() = 0
virtual bool OnNext(bool ok) = 0
virtual void Cancel() = 0
inline TransactionStatus GetStatus()

Protected Attributes

TransactionStatus transaction_status