Page Speed Optimization Libraries  1.13.35.1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Member Functions | List of all members
net_instaweb::RpcHolder< ReaderWriter > Class Template Reference

#include "request_result_rpc_client.h"

Public Member Functions

 RpcHolder (MessageHandler *handler)
 
FunctionCallbackForAsyncCleanup ()
 
void Finish ()
 
::grpc::ClientContext * context ()
 
MessageHandlerhandler ()
 
ReaderWriter * rw ()
 
void SetReaderWriter (std::unique_ptr< ReaderWriter > rw)
 

Detailed Description

template<typename ReaderWriter>
class net_instaweb::RpcHolder< ReaderWriter >

Holder of various bits of client-side gRPC stuff. Primarily exists to allow a blocking call to something like Done() into an async call to the server.

Member Function Documentation

template<typename ReaderWriter>
Function* net_instaweb::RpcHolder< ReaderWriter >::CallbackForAsyncCleanup ( )
inline

Takes ownership of "this", ie: You must remove the RpcHolder from any smart pointers because it's now going to delete itself. You should only call one of CallbackForAsyncCleanup() or Finish().

template<typename ReaderWriter>
void net_instaweb::RpcHolder< ReaderWriter >::Finish ( )
inline

Takes ownership of "this", ie: You must remove the RpcHolder from any smart pointers because it's now going to delete itself. You should only call one of CallbackForAsyncCleanup() or Finish().


The documentation for this class was generated from the following file: