GRPC C++  1.30.0
call_op_set_interface.h
Go to the documentation of this file.
1 /*
2  *
3  * Copyright 2018 gRPC authors.
4  *
5  * Licensed under the Apache License, Version 2.0 (the "License");
6  * you may not use this file except in compliance with the License.
7  * You may obtain a copy of the License at
8  *
9  * http://www.apache.org/licenses/LICENSE-2.0
10  *
11  * Unless required by applicable law or agreed to in writing, software
12  * distributed under the License is distributed on an "AS IS" BASIS,
13  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14  * See the License for the specific language governing permissions and
15  * limitations under the License.
16  *
17  */
18 
19 #ifndef GRPCPP_IMPL_CODEGEN_CALL_OP_SET_INTERFACE_H
20 #define GRPCPP_IMPL_CODEGEN_CALL_OP_SET_INTERFACE_H
21 
23 
24 namespace grpc {
25 namespace internal {
26 
27 class Call;
28 
35  public:
38  virtual void FillOps(internal::Call* call) = 0;
39 
43  virtual void* core_cq_tag() = 0;
44 
45  // This will be called while interceptors are run if the RPC is a hijacked
46  // RPC. This should set hijacking state for each of the ops.
47  virtual void SetHijackingState() = 0;
48 
49  // Should be called after interceptors are done running
50  virtual void ContinueFillOpsAfterInterception() = 0;
51 
52  // Should be called after interceptors are done running on the finalize result
53  // path
54  virtual void ContinueFinalizeResultAfterInterception() = 0;
55 };
56 } // namespace internal
57 } // namespace grpc
58 
59 #endif // GRPCPP_IMPL_CODEGEN_CALL_OP_SET_INTERFACE_H
grpc::internal::CallOpSetInterface::SetHijackingState
virtual void SetHijackingState()=0
grpc
This header provides an object that reads bytes directly from a grpc::ByteBuffer, via the ZeroCopyInp...
Definition: alarm.h:24
grpc::internal::Call
Straightforward wrapping of the C call object.
Definition: call.h:38
grpc::internal::CallOpSetInterface::core_cq_tag
virtual void * core_cq_tag()=0
Get the tag to be used at the core completion queue.
grpc::internal::CallOpSetInterface
An abstract collection of call ops, used to generate the grpc_call_op structure to pass down to the l...
Definition: call_op_set_interface.h:34
completion_queue_tag.h
grpc::internal::CompletionQueueTag
An interface allowing implementors to process and filter event tags.
Definition: completion_queue_tag.h:26
grpc::internal::CallOpSetInterface::FillOps
virtual void FillOps(internal::Call *call)=0
Fills in grpc_op, starting from ops[*nops] and moving upwards.
grpc::internal::CallOpSetInterface::ContinueFillOpsAfterInterception
virtual void ContinueFillOpsAfterInterception()=0
grpc::internal::CallOpSetInterface::ContinueFinalizeResultAfterInterception
virtual void ContinueFinalizeResultAfterInterception()=0