caosdb/unary_rpc_handler.h

namespace caosdb::transaction

Creation and execution of transactions.

Author

Timm Fitschen

Date

2021-08-05

class UnaryRpcHandler : public caosdb::transaction::HandlerInterface

Subclassed by caosdb::transaction::EntityTransactionHandler, caosdb::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_