Template Class CallData

Inheritance Relationships

Base Type

Derived Types

Class Documentation

template<typename RequestType, typename ReplyType>
class CallData : public amdinfer::CallDataBase

Subclassed by amdinfer::CallDataServerStream< RequestType, ReplyType >, amdinfer::CallDataUnary< RequestType, ReplyType >

Public Functions

inline CallData(AsyncService *service, ::grpc::ServerCompletionQueue *cq)
virtual ~CallData() = default
inline virtual void proceed() override
virtual void finish(const ::grpc::Status &status) = 0

Protected Types

enum CallStatus

Values:

enumerator Create
enumerator Process
enumerator Wait
enumerator Finish

Protected Functions

virtual void addNewCallData() = 0
virtual void waitForRequest() = 0
virtual void handleRequest() noexcept = 0

Protected Attributes

AsyncService *service_
::grpc::ServerCompletionQueue *cq_
::grpc::ServerContext ctx_
RequestType request_
ReplyType reply_
CallStatus status_