GRPC Core  9.0.0
Public Types | Public Member Functions
grpc_core::LoadBalancingPolicy::ChannelControlHelper Class Referenceabstract

A proxy object implemented by the client channel and used by the LB policy to communicate with the channel. More...

#include <lb_policy.h>

Public Types

enum  TraceSeverity { TRACE_INFO, TRACE_WARNING, TRACE_ERROR }
 Adds a trace message associated with the channel. More...
 

Public Member Functions

 ChannelControlHelper ()=default
 
virtual ~ChannelControlHelper ()=default
 
virtual RefCountedPtr< SubchannelInterfaceCreateSubchannel (const grpc_channel_args &args)=0
 Creates a new subchannel with the specified channel args. More...
 
virtual void UpdateState (grpc_connectivity_state state, std::unique_ptr< SubchannelPicker >)=0
 Sets the connectivity state and returns a new picker to be used by the client channel. More...
 
virtual void RequestReresolution ()=0
 Requests that the resolver re-resolve. More...
 
virtual void AddTraceEvent (TraceSeverity severity, StringView message)=0
 

Detailed Description

A proxy object implemented by the client channel and used by the LB policy to communicate with the channel.

Member Enumeration Documentation

◆ TraceSeverity

Adds a trace message associated with the channel.

Enumerator
TRACE_INFO 
TRACE_WARNING 
TRACE_ERROR 

Constructor & Destructor Documentation

◆ ChannelControlHelper()

grpc_core::LoadBalancingPolicy::ChannelControlHelper::ChannelControlHelper ( )
default

◆ ~ChannelControlHelper()

virtual grpc_core::LoadBalancingPolicy::ChannelControlHelper::~ChannelControlHelper ( )
virtualdefault

Member Function Documentation

◆ AddTraceEvent()

virtual void grpc_core::LoadBalancingPolicy::ChannelControlHelper::AddTraceEvent ( TraceSeverity  severity,
StringView  message 
)
pure virtual

◆ CreateSubchannel()

virtual RefCountedPtr<SubchannelInterface> grpc_core::LoadBalancingPolicy::ChannelControlHelper::CreateSubchannel ( const grpc_channel_args args)
pure virtual

Creates a new subchannel with the specified channel args.

Implemented in grpc_core::ResolvingLoadBalancingPolicy::ResolvingControlHelper.

◆ RequestReresolution()

virtual void grpc_core::LoadBalancingPolicy::ChannelControlHelper::RequestReresolution ( )
pure virtual

Requests that the resolver re-resolve.

Implemented in grpc_core::ResolvingLoadBalancingPolicy::ResolvingControlHelper.

◆ UpdateState()

virtual void grpc_core::LoadBalancingPolicy::ChannelControlHelper::UpdateState ( grpc_connectivity_state  state,
std::unique_ptr< SubchannelPicker  
)
pure virtual

Sets the connectivity state and returns a new picker to be used by the client channel.

Implemented in grpc_core::ResolvingLoadBalancingPolicy::ResolvingControlHelper.


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