GRPC C++  1.39.1
Public Member Functions
grpc_core::Subchannel::HealthWatcherMap::HealthWatcher Class Reference

Public Member Functions

 HealthWatcher (WeakRefCountedPtr< Subchannel > c, std::string health_check_service_name)
 
 ~HealthWatcher () override
 
const std::string & health_check_service_name () const
 
grpc_connectivity_state state () const
 
void AddWatcherLocked (grpc_connectivity_state initial_state, RefCountedPtr< Subchannel::ConnectivityStateWatcherInterface > watcher)
 
void RemoveWatcherLocked (Subchannel::ConnectivityStateWatcherInterface *watcher)
 
bool HasWatchers () const
 
void NotifyLocked (grpc_connectivity_state state, const absl::Status &status) ABSL_EXCLUSIVE_LOCKS_REQUIRED(subchannel_ -> mu_)
 
void Orphan () override
 
- Public Member Functions inherited from grpc_core::AsyncConnectivityStateWatcherInterface
 ~AsyncConnectivityStateWatcherInterface () override=default
 
void Notify (grpc_connectivity_state new_state, const absl::Status &status) final
 
- Public Member Functions inherited from grpc_core::ConnectivityStateWatcherInterface
 ~ConnectivityStateWatcherInterface () override=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 (std::shared_ptr< WorkSerializer > work_serializer=nullptr)
 
- Protected Member Functions inherited from grpc_core::InternallyRefCounted< ConnectivityStateWatcherInterface >
 InternallyRefCounted (const char *trace=nullptr, intptr_t initial_refcount=1)
 
 ~InternallyRefCounted () override=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 ( WeakRefCountedPtr< Subchannel c,
std::string  health_check_service_name 
)
inline

◆ ~HealthWatcher()

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

Member Function Documentation

◆ AddWatcherLocked()

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

◆ HasWatchers()

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

◆ health_check_service_name()

const std::string& grpc_core::Subchannel::HealthWatcherMap::HealthWatcher::health_check_service_name ( ) const
inline

◆ NotifyLocked()

void grpc_core::Subchannel::HealthWatcherMap::HealthWatcher::NotifyLocked ( grpc_connectivity_state  state,
const absl::Status &  status 
) -> mu_)
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: