Classes | Public Member Functions | Private Attributes | List of all members
grpc_core::ClientChannel::SubchannelWrapper Class Reference
Inheritance diagram for grpc_core::ClientChannel::SubchannelWrapper:
Inheritance graph
[legend]

Classes

class  WatcherWrapper
 

Public Member Functions

void AddDataWatcher (std::unique_ptr< DataWatcherInterface > watcher) override ABSL_EXCLUSIVE_LOCKS_REQUIRED(*chand_ -> work_serializer_)
 
void CancelConnectivityStateWatch (ConnectivityStateWatcherInterface *watcher) override ABSL_EXCLUSIVE_LOCKS_REQUIRED(*chand_ -> work_serializer_)
 
const grpc_channel_argschannel_args () override
 
RefCountedPtr< ConnectedSubchannelconnected_subchannel () const
 
void RequestConnection () override
 
void ResetBackoff () override
 
 SubchannelWrapper (ClientChannel *chand, RefCountedPtr< Subchannel > subchannel, absl::optional< std::string > health_check_service_name)
 
void ThrottleKeepaliveTime (int new_keepalive_time)
 
void WatchConnectivityState (std::unique_ptr< ConnectivityStateWatcherInterface > watcher) override ABSL_EXCLUSIVE_LOCKS_REQUIRED(*chand_ -> work_serializer_)
 
 ~SubchannelWrapper () override
 
- Public Member Functions inherited from grpc_core::SubchannelInterface
virtual void CancelConnectivityStateWatch (ConnectivityStateWatcherInterface *watcher)=0
 
 SubchannelInterface (const char *trace=nullptr)
 
virtual void WatchConnectivityState (std::unique_ptr< ConnectivityStateWatcherInterface > watcher)=0
 
 ~SubchannelInterface () override=default
 
- Public Member Functions inherited from grpc_core::RefCounted< SubchannelInterface >
RefCountedoperator= (const RefCounted &)=delete
 
RefCountedPtr< SubchannelInterfaceRef () GRPC_MUST_USE_RESULT
 
RefCountedPtr< SubchannelInterfaceRef (const DebugLocation &location, const char *reason) GRPC_MUST_USE_RESULT
 
 RefCounted (const RefCounted &)=delete
 
RefCountedPtr< SubchannelInterfaceRefIfNonZero () GRPC_MUST_USE_RESULT
 
RefCountedPtr< SubchannelInterfaceRefIfNonZero (const DebugLocation &location, const char *reason) GRPC_MUST_USE_RESULT
 
void Unref ()
 
void Unref (const DebugLocation &location, const char *reason)
 
 ~RefCounted ()=default
 
- Public Member Functions inherited from grpc_core::PolymorphicRefCount
virtual ~PolymorphicRefCount ()=default
 

Private Attributes

ClientChannelchand_
 
std::map< ConnectivityStateWatcherInterface *, WatcherWrapper * > watcher_map_ ABSL_GUARDED_BYchand_
 
std::vector< std::unique_ptr< InternalSubchannelDataWatcherInterface > > data_watchers_ ABSL_GUARDED_BYchand_
 
absl::optional< std::string > health_check_service_name_
 
RefCountedPtr< Subchannelsubchannel_
 

Additional Inherited Members

- Public Types inherited from grpc_core::RefCounted< SubchannelInterface >
using RefCountedChildType = SubchannelInterface
 
- Protected Member Functions inherited from grpc_core::RefCounted< SubchannelInterface >
 RefCounted (const char *trace=nullptr, intptr_t initial_refcount=1)
 

Detailed Description

Definition at line 455 of file client_channel.cc.

Constructor & Destructor Documentation

◆ SubchannelWrapper()

grpc_core::ClientChannel::SubchannelWrapper::SubchannelWrapper ( ClientChannel chand,
RefCountedPtr< Subchannel subchannel,
absl::optional< std::string >  health_check_service_name 
)
inline

Definition at line 457 of file client_channel.cc.

◆ ~SubchannelWrapper()

grpc_core::ClientChannel::SubchannelWrapper::~SubchannelWrapper ( )
inlineoverride

Definition at line 486 of file client_channel.cc.

Member Function Documentation

◆ AddDataWatcher()

void grpc_core::ClientChannel::SubchannelWrapper::AddDataWatcher ( std::unique_ptr< DataWatcherInterface watcher) -> work_serializer_)
inlineoverridevirtual

Implements grpc_core::SubchannelInterface.

Definition at line 539 of file client_channel.cc.

◆ CancelConnectivityStateWatch()

void grpc_core::ClientChannel::SubchannelWrapper::CancelConnectivityStateWatch ( ConnectivityStateWatcherInterface watcher) -> work_serializer_)
inlineoverride

Definition at line 522 of file client_channel.cc.

◆ channel_args()

const grpc_channel_args* grpc_core::ClientChannel::SubchannelWrapper::channel_args ( )
inlineoverridevirtual

Implements grpc_core::SubchannelInterface.

Definition at line 548 of file client_channel.cc.

◆ connected_subchannel()

RefCountedPtr<ConnectedSubchannel> grpc_core::ClientChannel::SubchannelWrapper::connected_subchannel ( ) const
inline

Definition at line 531 of file client_channel.cc.

◆ RequestConnection()

void grpc_core::ClientChannel::SubchannelWrapper::RequestConnection ( )
inlineoverridevirtual

Implements grpc_core::SubchannelInterface.

Definition at line 535 of file client_channel.cc.

◆ ResetBackoff()

void grpc_core::ClientChannel::SubchannelWrapper::ResetBackoff ( )
inlineoverridevirtual

Implements grpc_core::SubchannelInterface.

Definition at line 537 of file client_channel.cc.

◆ ThrottleKeepaliveTime()

void grpc_core::ClientChannel::SubchannelWrapper::ThrottleKeepaliveTime ( int  new_keepalive_time)
inline

Definition at line 552 of file client_channel.cc.

◆ WatchConnectivityState()

void grpc_core::ClientChannel::SubchannelWrapper::WatchConnectivityState ( std::unique_ptr< ConnectivityStateWatcherInterface watcher) -> work_serializer_)
inlineoverride

Definition at line 509 of file client_channel.cc.

Member Data Documentation

◆ chand_ [1/3]

ClientChannel* grpc_core::ClientChannel::SubchannelWrapper::chand_
private

Definition at line 678 of file client_channel.cc.

◆ chand_ [2/3]

std::map<ConnectivityStateWatcherInterface*, WatcherWrapper*> watcher_map_ ABSL_GUARDED_BY* grpc_core::ClientChannel::SubchannelWrapper::chand_
private

Definition at line 687 of file client_channel.cc.

◆ chand_ [3/3]

std::vector<std::unique_ptr<InternalSubchannelDataWatcherInterface> > data_watchers_ ABSL_GUARDED_BY* grpc_core::ClientChannel::SubchannelWrapper::chand_
private

Definition at line 689 of file client_channel.cc.

◆ health_check_service_name_

absl::optional<std::string> grpc_core::ClientChannel::SubchannelWrapper::health_check_service_name_
private

Definition at line 680 of file client_channel.cc.

◆ subchannel_

RefCountedPtr<Subchannel> grpc_core::ClientChannel::SubchannelWrapper::subchannel_
private

Definition at line 679 of file client_channel.cc.


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


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