|
GRPC C++
1.0.0
|
A thin wrapper around grpc_completion_queue (see / src/core/surface/completion_queue.h). More...
#include <completion_queue.h>
Public Types | |
| enum | NextStatus { SHUTDOWN, GOT_EVENT, TIMEOUT } |
| Tri-state return for AsyncNext: SHUTDOWN, GOT_EVENT, TIMEOUT. More... | |
Public Member Functions | |
| CompletionQueue () | |
| Default constructor. More... | |
| CompletionQueue (grpc_completion_queue *take) | |
| Wrap take, taking ownership of the instance. More... | |
| ~CompletionQueue () | |
| Destructor. Destroys the owned wrapped completion queue / instance. More... | |
| template<typename T > | |
| NextStatus | AsyncNext (void **tag, bool *ok, const T &deadline) |
| Read from the queue, blocking up to deadline (or the queue's shutdown). More... | |
| bool | Next (void **tag, bool *ok) |
| Read from the queue, blocking until an event is available or the queue is shutting down. More... | |
| void | Shutdown () |
| Request the shutdown of the queue. More... | |
| grpc_completion_queue * | cq () |
| Returns a raw pointer to the underlying grpc_completion_queue instance. More... | |
Friends | |
| template<class R > | |
| class | ::grpc::ClientReader |
| template<class W > | |
| class | ::grpc::ClientWriter |
| template<class W , class R > | |
| class | ::grpc::ClientReaderWriter |
| template<class R > | |
| class | ::grpc::ServerReader |
| template<class W > | |
| class | ::grpc::ServerWriter |
| template<class W , class R > | |
| class | ::grpc::ServerReaderWriter |
| template<class ServiceType , class RequestType , class ResponseType > | |
| class | RpcMethodHandler |
| template<class ServiceType , class RequestType , class ResponseType > | |
| class | ClientStreamingHandler |
| template<class ServiceType , class RequestType , class ResponseType > | |
| class | ServerStreamingHandler |
| template<class ServiceType , class RequestType , class ResponseType > | |
| class | BidiStreamingHandler |
| class | UnknownMethodHandler |
| class | ::grpc::Server |
| class | ::grpc::ServerContext |
| template<class InputMessage , class OutputMessage > | |
| Status | BlockingUnaryCall (ChannelInterface *channel, const RpcMethod &method, ClientContext *context, const InputMessage &request, OutputMessage *result) |
A thin wrapper around grpc_completion_queue (see / src/core/surface/completion_queue.h).
|
inline |
Default constructor.
Implicitly creates a grpc_completion_queue instance.
|
explicit |
Wrap take, taking ownership of the instance.
| take | The completion queue instance to wrap. Ownership is taken. |
|
inline |
Destructor. Destroys the owned wrapped completion queue / instance.
|
inline |
Read from the queue, blocking up to deadline (or the queue's shutdown).
Both tag and ok are updated upon success (if an event is available within the deadline). A tag points to an arbitrary location usually employed to uniquely identify an event.
| tag[out] | Upon sucess, updated to point to the event's tag. |
| ok[out] | Upon sucess, true if read a regular event, false otherwise. |
| deadline[in] | How long to block in wait for an event. |
|
inline |
Returns a raw pointer to the underlying grpc_completion_queue instance.
|
inline |
Read from the queue, blocking until an event is available or the queue is shutting down.
| tag[out] | Updated to point to the read event's tag. |
| ok[out] | true if read a regular event, false otherwise. |
| void grpc::CompletionQueue::Shutdown | ( | ) |
Request the shutdown of the queue.
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
1.8.11