linkahead/transaction_handler.h

namespace linkahead
namespace transaction

Creation and execution of transactions.

Author

Timm Fitschen

Date

2021-08-05

class EntityTransactionHandler : public linkahead::transaction::UnaryRpcHandler

Public Functions

EntityTransactionHandler(HandlerTag tag, EntityTransactionService::Stub *stub, grpc::CompletionQueue *completion_queue, MultiTransactionRequest *request, MultiTransactionResponse *response)
~EntityTransactionHandler() override = default
EntityTransactionHandler(const EntityTransactionHandler&) = delete
EntityTransactionHandler &operator=(const EntityTransactionHandler&) = delete
EntityTransactionHandler(EntityTransactionHandler&&) = delete
EntityTransactionHandler &operator=(EntityTransactionHandler&&) = delete

Protected Functions

virtual void handleNewCallState() override

Protected Attributes

HandlerTag tag_
EntityTransactionService::Stub *stub_
std::unique_ptr<grpc::ClientAsyncResponseReader<MultiTransactionResponse>> rpc_
MultiTransactionRequest *request_
MultiTransactionResponse *response_