linkahead/unary_rpc_handler.h

namespace linkahead
namespace transaction

Creation and execution of transactions.

Author

Timm Fitschen

Date

2021-08-05

class UnaryRpcHandler : public linkahead::transaction::HandlerInterface

Subclassed by linkahead::transaction::EntityTransactionHandler, linkahead::transaction::RegisterFileUploadHandler

Public Functions

inline UnaryRpcHandler(grpc::CompletionQueue *completion_queue)
inline virtual void Start() override
virtual bool OnNext(bool ok) override
virtual void Cancel() override

Protected Types

enum CallState

Values:

enumerator NewCall
enumerator CallComplete

Protected Functions

virtual void handleNewCallState() = 0
void handleCallCompleteState()

Protected Attributes

CallState state_
grpc::CompletionQueue *completion_queue
grpc::ClientContext call_context
grpc::Status status_