template <typename RequestT, typename ResponseT>

class MessageHolder

Defined at line 39 of file ../../third_party/grpc-migrating/src/include/grpcpp/support/message_allocator.h

This is the interface returned by the allocator.

grpc library will call the methods to get request/response pointers and to

release the object when it is done.

Public Methods

void Release ()

Release this object. For example, if the custom allocator's

AllocateMessasge creates an instance of a subclass with new, the Release()

should do a "delete this;".

RequestT * request ()

Defined at line 45 of file ../../third_party/grpc-migrating/src/include/grpcpp/support/message_allocator.h

ResponseT * response ()

Defined at line 46 of file ../../third_party/grpc-migrating/src/include/grpcpp/support/message_allocator.h

Protected Methods

void set_request (RequestT * request)

Defined at line 49 of file ../../third_party/grpc-migrating/src/include/grpcpp/support/message_allocator.h

void set_response (ResponseT * response)

Defined at line 50 of file ../../third_party/grpc-migrating/src/include/grpcpp/support/message_allocator.h