Public Member Functions | Private Member Functions | Private Attributes | Friends | List of all members
grpc::internal::InterceptedChannel Class Reference

#include <intercepted_channel.h>

Inheritance diagram for grpc::internal::InterceptedChannel:
Inheritance graph
[legend]

Public Member Functions

grpc_connectivity_state GetState (bool try_to_connect) override
 
 ~InterceptedChannel () override
 
- Public Member Functions inherited from grpc::ChannelInterface
template<typename T >
void NotifyOnStateChange (grpc_connectivity_state last_observed, T deadline, grpc::CompletionQueue *cq, void *tag)
 
template<typename T >
bool WaitForConnected (T deadline)
 Wait for this channel to be connected. More...
 
template<typename T >
bool WaitForStateChange (grpc_connectivity_state last_observed, T deadline)
 
virtual ~ChannelInterface ()
 

Private Member Functions

grpc::CompletionQueueCallbackCQ () override
 
Call CreateCall (const RpcMethod &method, grpc::ClientContext *context, grpc::CompletionQueue *cq) override
 
 InterceptedChannel (ChannelInterface *channel, size_t pos)
 
void NotifyOnStateChangeImpl (grpc_connectivity_state last_observed, gpr_timespec deadline, grpc::CompletionQueue *cq, void *tag) override
 
void PerformOpsOnCall (CallOpSetInterface *ops, Call *call) override
 
void * RegisterMethod (const char *method) override
 
bool WaitForStateChangeImpl (grpc_connectivity_state last_observed, gpr_timespec deadline) override
 

Private Attributes

ChannelInterfacechannel_
 
size_t interceptor_pos_
 

Friends

class InterceptorBatchMethodsImpl
 

Detailed Description

An InterceptedChannel is available to client Interceptors. An InterceptedChannel is unique to an interceptor, and when an RPC is started on this channel, only those interceptors that come after this interceptor see the RPC.

Definition at line 37 of file intercepted_channel.h.

Constructor & Destructor Documentation

◆ ~InterceptedChannel()

grpc::internal::InterceptedChannel::~InterceptedChannel ( )
inlineoverride

Definition at line 39 of file intercepted_channel.h.

◆ InterceptedChannel()

grpc::internal::InterceptedChannel::InterceptedChannel ( ChannelInterface channel,
size_t  pos 
)
inlineprivate

Definition at line 48 of file intercepted_channel.h.

Member Function Documentation

◆ CallbackCQ()

grpc::CompletionQueue* grpc::internal::InterceptedChannel::CallbackCQ ( )
inlineoverrideprivatevirtual

Reimplemented from grpc::ChannelInterface.

Definition at line 73 of file intercepted_channel.h.

◆ CreateCall()

Call grpc::internal::InterceptedChannel::CreateCall ( const RpcMethod method,
grpc::ClientContext context,
grpc::CompletionQueue cq 
)
inlineoverrideprivatevirtual

Implements grpc::ChannelInterface.

Definition at line 51 of file intercepted_channel.h.

◆ GetState()

grpc_connectivity_state grpc::internal::InterceptedChannel::GetState ( bool  try_to_connect)
inlineoverridevirtual

Get the current channel state. If the channel is in IDLE and try_to_connect is set to true, try to connect.

Implements grpc::ChannelInterface.

Definition at line 43 of file intercepted_channel.h.

◆ NotifyOnStateChangeImpl()

void grpc::internal::InterceptedChannel::NotifyOnStateChangeImpl ( grpc_connectivity_state  last_observed,
gpr_timespec  deadline,
grpc::CompletionQueue cq,
void *  tag 
)
inlineoverrideprivatevirtual

Implements grpc::ChannelInterface.

Definition at line 63 of file intercepted_channel.h.

◆ PerformOpsOnCall()

void grpc::internal::InterceptedChannel::PerformOpsOnCall ( CallOpSetInterface ops,
Call call 
)
inlineoverrideprivatevirtual

Implements grpc::ChannelInterface.

Definition at line 56 of file intercepted_channel.h.

◆ RegisterMethod()

void* grpc::internal::InterceptedChannel::RegisterMethod ( const char *  method)
inlineoverrideprivatevirtual

Implements grpc::ChannelInterface.

Definition at line 59 of file intercepted_channel.h.

◆ WaitForStateChangeImpl()

bool grpc::internal::InterceptedChannel::WaitForStateChangeImpl ( grpc_connectivity_state  last_observed,
gpr_timespec  deadline 
)
inlineoverrideprivatevirtual

Implements grpc::ChannelInterface.

Definition at line 68 of file intercepted_channel.h.

Friends And Related Function Documentation

◆ InterceptorBatchMethodsImpl

friend class InterceptorBatchMethodsImpl
friend

Definition at line 80 of file intercepted_channel.h.

Member Data Documentation

◆ channel_

ChannelInterface* grpc::internal::InterceptedChannel::channel_
private

Definition at line 77 of file intercepted_channel.h.

◆ interceptor_pos_

size_t grpc::internal::InterceptedChannel::interceptor_pos_
private

Definition at line 78 of file intercepted_channel.h.


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


grpc
Author(s):
autogenerated on Fri May 16 2025 03:03:33