GRPC Core  9.0.0
Public Member Functions
grpc_core::Subchannel::HealthWatcherMap::HealthWatcher Class Reference

Public Member Functions

 HealthWatcher (Subchannel *c, grpc_core::UniquePtr< char > health_check_service_name, grpc_connectivity_state subchannel_state)
 
 ~HealthWatcher ()
 
const char * health_check_service_name () const
 
grpc_connectivity_state state () const
 
void AddWatcherLocked (grpc_connectivity_state initial_state, OrphanablePtr< Subchannel::ConnectivityStateWatcherInterface > watcher)
 
void RemoveWatcherLocked (Subchannel::ConnectivityStateWatcherInterface *watcher)
 
bool HasWatchers () const
 
void NotifyLocked (grpc_connectivity_state state)
 
void Orphan () override
 
- Public Member Functions inherited from grpc_core::AsyncConnectivityStateWatcherInterface
virtual ~AsyncConnectivityStateWatcherInterface ()=default
 
void Notify (grpc_connectivity_state new_state) override final
 
- Public Member Functions inherited from grpc_core::ConnectivityStateWatcherInterface
virtual ~ConnectivityStateWatcherInterface ()=default
 
void Orphan () override
 
- Public Member Functions inherited from grpc_core::InternallyRefCounted< ConnectivityStateWatcherInterface >
 InternallyRefCounted (const InternallyRefCounted &)=delete
 
InternallyRefCountedoperator= (const InternallyRefCounted &)=delete
 
- Public Member Functions inherited from grpc_core::Orphanable
 Orphanable (const Orphanable &)=delete
 
Orphanableoperator= (const Orphanable &)=delete
 

Additional Inherited Members

- Protected Member Functions inherited from grpc_core::AsyncConnectivityStateWatcherInterface
 AsyncConnectivityStateWatcherInterface (Combiner *combiner=nullptr)
 
- Protected Member Functions inherited from grpc_core::InternallyRefCounted< ConnectivityStateWatcherInterface >
 InternallyRefCounted (TraceFlagT *trace_flag=nullptr, intptr_t initial_refcount=1)
 
virtual ~InternallyRefCounted ()=default
 
RefCountedPtr< ConnectivityStateWatcherInterfaceRef () GRPC_MUST_USE_RESULT
 
RefCountedPtr< ConnectivityStateWatcherInterfaceRef (const DebugLocation &location, const char *reason) GRPC_MUST_USE_RESULT
 
void Unref ()
 
void Unref (const DebugLocation &location, const char *reason)
 
- Protected Member Functions inherited from grpc_core::Orphanable
 Orphanable ()
 
virtual ~Orphanable ()
 

Constructor & Destructor Documentation

◆ HealthWatcher()

grpc_core::Subchannel::HealthWatcherMap::HealthWatcher::HealthWatcher ( Subchannel c,
grpc_core::UniquePtr< char >  health_check_service_name,
grpc_connectivity_state  subchannel_state 
)
inline

◆ ~HealthWatcher()

grpc_core::Subchannel::HealthWatcherMap::HealthWatcher::~HealthWatcher ( )
inline

Member Function Documentation

◆ AddWatcherLocked()

void grpc_core::Subchannel::HealthWatcherMap::HealthWatcher::AddWatcherLocked ( grpc_connectivity_state  initial_state,
OrphanablePtr< Subchannel::ConnectivityStateWatcherInterface watcher 
)
inline

◆ HasWatchers()

bool grpc_core::Subchannel::HealthWatcherMap::HealthWatcher::HasWatchers ( ) const
inline

◆ health_check_service_name()

const char* grpc_core::Subchannel::HealthWatcherMap::HealthWatcher::health_check_service_name ( ) const
inline

◆ NotifyLocked()

void grpc_core::Subchannel::HealthWatcherMap::HealthWatcher::NotifyLocked ( grpc_connectivity_state  state)
inline

◆ Orphan()

void grpc_core::Subchannel::HealthWatcherMap::HealthWatcher::Orphan ( )
inlineoverridevirtual

Implements grpc_core::Orphanable.

◆ RemoveWatcherLocked()

void grpc_core::Subchannel::HealthWatcherMap::HealthWatcher::RemoveWatcherLocked ( Subchannel::ConnectivityStateWatcherInterface watcher)
inline

◆ state()

grpc_connectivity_state grpc_core::Subchannel::HealthWatcherMap::HealthWatcher::state ( ) const
inline

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