GRPC Core  18.0.0
Data Structures | Public Member Functions
grpc_core::ChildPolicyHandler Class Reference

#include <child_policy_handler.h>

Data Structures

class  Helper
 

Public Member Functions

 ChildPolicyHandler (Args args, TraceFlag *tracer)
 
const char * name () const override
 Returns the name of the LB policy. More...
 
void UpdateLocked (UpdateArgs args) override
 Updates the policy with new data from the resolver. More...
 
void ExitIdleLocked () override
 Tries to enter a READY connectivity state. More...
 
void ResetBackoffLocked () override
 Resets connection backoff. More...
 
virtual bool ConfigChangeRequiresNewPolicyInstance (LoadBalancingPolicy::Config *old_config, LoadBalancingPolicy::Config *new_config) const
 
virtual OrphanablePtr< LoadBalancingPolicyCreateLoadBalancingPolicy (const char *name, LoadBalancingPolicy::Args args) const
 
- Public Member Functions inherited from grpc_core::LoadBalancingPolicy
 LoadBalancingPolicy (Args args, intptr_t initial_refcount=1)
 
 ~LoadBalancingPolicy () override
 
 LoadBalancingPolicy (const LoadBalancingPolicy &)=delete
 
LoadBalancingPolicyoperator= (const LoadBalancingPolicy &)=delete
 
grpc_pollset_setinterested_parties () const
 
void Orphan () override
 
- Public Member Functions inherited from grpc_core::InternallyRefCounted< LoadBalancingPolicy >
 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::LoadBalancingPolicy
std::shared_ptr< WorkSerializerwork_serializer () const
 
ChannelControlHelperchannel_control_helper () const
 
- Protected Member Functions inherited from grpc_core::InternallyRefCounted< LoadBalancingPolicy >
 InternallyRefCounted (const char *trace=nullptr, intptr_t initial_refcount=1)
 
 ~InternallyRefCounted () override=default
 
RefCountedPtr< LoadBalancingPolicyRef () GRPC_MUST_USE_RESULT
 
RefCountedPtr< LoadBalancingPolicyRef (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

◆ ChildPolicyHandler()

grpc_core::ChildPolicyHandler::ChildPolicyHandler ( Args  args,
TraceFlag tracer 
)
inline

Member Function Documentation

◆ ConfigChangeRequiresNewPolicyInstance()

bool grpc_core::ChildPolicyHandler::ConfigChangeRequiresNewPolicyInstance ( LoadBalancingPolicy::Config old_config,
LoadBalancingPolicy::Config new_config 
) const
virtual

◆ CreateLoadBalancingPolicy()

OrphanablePtr< LoadBalancingPolicy > grpc_core::ChildPolicyHandler::CreateLoadBalancingPolicy ( const char *  name,
LoadBalancingPolicy::Args  args 
) const
virtual

◆ ExitIdleLocked()

void grpc_core::ChildPolicyHandler::ExitIdleLocked ( )
overridevirtual

Tries to enter a READY connectivity state.

This is a no-op by default, since most LB policies never go into IDLE state.

Reimplemented from grpc_core::LoadBalancingPolicy.

◆ name()

const char* grpc_core::ChildPolicyHandler::name ( ) const
inlineoverridevirtual

Returns the name of the LB policy.

Implements grpc_core::LoadBalancingPolicy.

◆ ResetBackoffLocked()

void grpc_core::ChildPolicyHandler::ResetBackoffLocked ( )
overridevirtual

Resets connection backoff.

Implements grpc_core::LoadBalancingPolicy.

◆ UpdateLocked()

void grpc_core::ChildPolicyHandler::UpdateLocked ( UpdateArgs  )
overridevirtual

Updates the policy with new data from the resolver.

Will be invoked immediately after LB policy is constructed, and then again whenever the resolver returns a new result.

Implements grpc_core::LoadBalancingPolicy.


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