Public Member Functions | Static Public Member Functions | Private Member Functions | Private Attributes | List of all members
grpc_core::GlobalSubchannelPool Class Referencefinal

#include <global_subchannel_pool.h>

Inheritance diagram for grpc_core::GlobalSubchannelPool:
Inheritance graph
[legend]

Public Member Functions

RefCountedPtr< SubchannelFindSubchannel (const SubchannelKey &key) override ABSL_LOCKS_EXCLUDED(mu_)
 
RefCountedPtr< SubchannelRegisterSubchannel (const SubchannelKey &key, RefCountedPtr< Subchannel > constructed) override ABSL_LOCKS_EXCLUDED(mu_)
 
void UnregisterSubchannel (const SubchannelKey &key, Subchannel *subchannel) override ABSL_LOCKS_EXCLUDED(mu_)
 
- Public Member Functions inherited from grpc_core::SubchannelPoolInterface
 SubchannelPoolInterface ()
 
 ~SubchannelPoolInterface () override
 
- Public Member Functions inherited from grpc_core::RefCounted< SubchannelPoolInterface >
RefCountedoperator= (const RefCounted &)=delete
 
RefCountedPtr< SubchannelPoolInterfaceRef () GRPC_MUST_USE_RESULT
 
RefCountedPtr< SubchannelPoolInterfaceRef (const DebugLocation &location, const char *reason) GRPC_MUST_USE_RESULT
 
 RefCounted (const RefCounted &)=delete
 
RefCountedPtr< SubchannelPoolInterfaceRefIfNonZero () GRPC_MUST_USE_RESULT
 
RefCountedPtr< SubchannelPoolInterfaceRefIfNonZero (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
 

Static Public Member Functions

static RefCountedPtr< GlobalSubchannelPoolinstance ()
 
- Static Public Member Functions inherited from grpc_core::SubchannelPoolInterface
static grpc_arg CreateChannelArg (SubchannelPoolInterface *subchannel_pool)
 
static SubchannelPoolInterfaceGetSubchannelPoolFromChannelArgs (const grpc_channel_args *args)
 

Private Member Functions

std::map< SubchannelKey, Subchannel * > subchannel_map_ ABSL_GUARDED_BY (mu_)
 
 GlobalSubchannelPool ()
 
 ~GlobalSubchannelPool () override
 

Private Attributes

Mutex mu_
 

Additional Inherited Members

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

Detailed Description

Definition at line 36 of file global_subchannel_pool.h.

Constructor & Destructor Documentation

◆ GlobalSubchannelPool()

grpc_core::GlobalSubchannelPool::GlobalSubchannelPool ( )
inlineprivate

Definition at line 52 of file global_subchannel_pool.h.

◆ ~GlobalSubchannelPool()

grpc_core::GlobalSubchannelPool::~GlobalSubchannelPool ( )
inlineoverrideprivate

Definition at line 53 of file global_subchannel_pool.h.

Member Function Documentation

◆ ABSL_GUARDED_BY()

std::map<SubchannelKey, Subchannel*> subchannel_map_ grpc_core::GlobalSubchannelPool::ABSL_GUARDED_BY ( mu_  )
private

◆ FindSubchannel()

RefCountedPtr< Subchannel > grpc_core::GlobalSubchannelPool::FindSubchannel ( const SubchannelKey key)
overridevirtual

Implements grpc_core::SubchannelPoolInterface.

Definition at line 57 of file global_subchannel_pool.cc.

◆ instance()

RefCountedPtr< GlobalSubchannelPool > grpc_core::GlobalSubchannelPool::instance ( )
static

Definition at line 29 of file global_subchannel_pool.cc.

◆ RegisterSubchannel()

RefCountedPtr< Subchannel > grpc_core::GlobalSubchannelPool::RegisterSubchannel ( const SubchannelKey key,
RefCountedPtr< Subchannel constructed 
)
overridevirtual

Implements grpc_core::SubchannelPoolInterface.

Definition at line 34 of file global_subchannel_pool.cc.

◆ UnregisterSubchannel()

void grpc_core::GlobalSubchannelPool::UnregisterSubchannel ( const SubchannelKey key,
Subchannel subchannel 
)
overridevirtual

Implements grpc_core::SubchannelPoolInterface.

Definition at line 46 of file global_subchannel_pool.cc.

Member Data Documentation

◆ mu_

Mutex grpc_core::GlobalSubchannelPool::mu_
private

Definition at line 58 of file global_subchannel_pool.h.


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


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