GRPC C++  1.0.0
Public Member Functions
grpc::ClientAsyncWriter< W > Class Template Reference

#include <async_stream.h>

Public Member Functions

template<class R >
 ClientAsyncWriter (ChannelInterface *channel, CompletionQueue *cq, const RpcMethod &method, ClientContext *context, R *response, void *tag)
 
void ReadInitialMetadata (void *tag) GRPC_OVERRIDE
 Request notification of the reading of the initial metadata. More...
 
void Write (const W &msg, void *tag) GRPC_OVERRIDE
 Request the writing of msg with identifying tag tag. More...
 
void WritesDone (void *tag) GRPC_OVERRIDE
 Signal the client is done with the writes. More...
 
void Finish (Status *status, void *tag) GRPC_OVERRIDE
 Indicate that the stream is to be finished and request notification Should not be used concurrently with other operations. More...
 
- Public Member Functions inherited from grpc::ClientAsyncStreamingInterface
virtual ~ClientAsyncStreamingInterface ()
 
- Public Member Functions inherited from grpc::AsyncWriterInterface< W >
virtual ~AsyncWriterInterface ()
 

Constructor & Destructor Documentation

template<class W >
template<class R >
grpc::ClientAsyncWriter< W >::ClientAsyncWriter ( ChannelInterface channel,
CompletionQueue cq,
const RpcMethod method,
ClientContext context,
R *  response,
void *  tag 
)
inline

Member Function Documentation

template<class W >
void grpc::ClientAsyncWriter< W >::Finish ( Status status,
void *  tag 
)
inlinevirtual

Indicate that the stream is to be finished and request notification Should not be used concurrently with other operations.

Parameters
[out]statusTo be updated with the operation status.
[in]tagTag identifying this request.

Implements grpc::ClientAsyncStreamingInterface.

template<class W >
void grpc::ClientAsyncWriter< W >::ReadInitialMetadata ( void *  tag)
inlinevirtual

Request notification of the reading of the initial metadata.

Completion will be notified by tag on the associated completion queue. This call is optional, but if it is used, it cannot be used concurrently with or after the Read method.

Parameters
[in]tagTag identifying this request.

Implements grpc::ClientAsyncStreamingInterface.

template<class W >
void grpc::ClientAsyncWriter< W >::Write ( const W &  msg,
void *  tag 
)
inlinevirtual

Request the writing of msg with identifying tag tag.

Only one write may be outstanding at any given time. This means that after calling Write, one must wait to receive tag from the completion queue BEFORE calling Write again. This is thread-safe with respect to Read

Parameters
[in]msgThe message to be written.
[in]tagThe tag identifying the operation.

Implements grpc::AsyncWriterInterface< W >.

template<class W >
void grpc::ClientAsyncWriter< W >::WritesDone ( void *  tag)
inlinevirtual

Signal the client is done with the writes.

Thread-safe with respect to Read

Parameters
[in]tagThe tag identifying the operation.

Implements grpc::ClientAsyncWriterInterface< W >.


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