linkahead/handler_interface.h

namespace linkahead
namespace 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 = "linkahead::transaction"
class HandlerInterface

Subclassed by linkahead::transaction::DownloadRequestHandler, linkahead::transaction::UnaryRpcHandler, linkahead::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