Go to the documentation of this file.
19 #ifndef GRPCPP_CHANNEL_IMPL_H
20 #define GRPCPP_CHANNEL_IMPL_H
37 class ChannelTestPeer;
43 std::unique_ptr<experimental::ClientInterceptorFactoryInterface>>
44 interceptor_creators);
48 namespace experimental {
58 public std::enable_shared_from_this<Channel>,
75 template <
class InputMessage,
class OutputMessage>
76 friend class ::grpc::internal::BlockingUnaryCallImpl;
77 friend class ::grpc::testing::ChannelTestPeer;
81 std::vector<std::unique_ptr<
83 interceptor_creators);
84 friend class ::grpc::internal::InterceptedChannel;
86 std::vector<std::unique_ptr<
88 interceptor_creators);
95 void* RegisterMethod(
const char* method)
override;
107 const ::grpc::internal::RpcMethod& method,
109 size_t interceptor_pos)
override;
124 std::unique_ptr<::grpc::experimental::ClientInterceptorFactoryInterface>>
125 interceptor_creators_;
130 #endif // GRPCPP_CHANNEL_IMPL_H
Classes that require gRPC to be initialized should inherit from this class.
Definition: grpc_library.h:38
void ChannelResetConnectionBackoff(Channel *channel)
Resets the channel's connection backoff.
This header provides an object that reads bytes directly from a grpc::ByteBuffer, via the ZeroCopyInp...
Definition: alarm.h:24
This is an interface that Channel and Server implement to allow them to hook performing ops.
Definition: call_hook.h:30
Straightforward wrapping of the C call object.
Definition: call.h:38
grpc_connectivity_state GetState(bool try_to_connect) override
Get the current channel state.
grpc::string GetLoadBalancingPolicyName() const
Returns the LB policy name, or the empty string if not yet available.
grpc_connectivity_state
Connectivity state of a channel.
Definition: connectivity_state.h:27
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
Codegen interface for grpc::Channel.
Definition: channel_interface.h:74
Channels represent a connection to an endpoint. Created by CreateChannel.
Definition: channel_impl.h:56
A thin wrapper around grpc_completion_queue (see src/core/lib/surface/completion_queue....
Definition: completion_queue_impl.h:103
Definition: client_interceptor.h:49
std::string string
Definition: config.h:35
An Alarm posts the user-provided tag to its associated completion queue or invokes the user-provided ...
Definition: alarm_impl.h:33
struct grpc_channel grpc_channel
The Channel interface allows creation of Call objects.
Definition: grpc_types.h:62
A ClientContext allows the person implementing a service client to:
Definition: client_context_impl.h:184
Analogous to struct timespec.
Definition: gpr_types.h:47
grpc::string GetServiceConfigJSON() const
Returns the service config in JSON form, or the empty string if not available.
std::shared_ptr<::grpc_impl::Channel > CreateChannelInternal(const grpc::string &host, grpc_channel *c_channel, std::vector< std::unique_ptr< experimental::ClientInterceptorFactoryInterface >> interceptor_creators)