Uses of Enum
io.grpc.ConnectivityState
Packages that use ConnectivityState
Package
Description
The gRPC core public API.
Interfaces and implementations that are internal to gRPC.
Service definitions and utilities with protobuf dependency for the pre-defined gRPC services.
Utilities with advanced features in the core layer that user can optionally use.
-
Uses of ConnectivityState in io.grpc
Fields in io.grpc declared as ConnectivityStateModifier and TypeFieldDescriptionprivate final ConnectivityState
ConnectivityStateInfo.state
private ConnectivityState
InternalChannelz.ChannelStats.Builder.state
final ConnectivityState
InternalChannelz.ChannelStats.state
Methods in io.grpc that return ConnectivityStateModifier and TypeMethodDescriptionConnectivityStateInfo.getState()
Returns the state.ManagedChannel.getState
(boolean requestConnection) Gets the current connectivity state.static ConnectivityState
Returns the enum constant of this type with the specified name.static ConnectivityState[]
ConnectivityState.values()
Returns an array containing the constants of this enum type, in the order they are declared.Methods in io.grpc with parameters of type ConnectivityStateModifier and TypeMethodDescriptionstatic ConnectivityStateInfo
ConnectivityStateInfo.forNonError
(ConnectivityState state) Returns an instance for a state that is notTRANSIENT_FAILURE
.void
ManagedChannel.notifyWhenStateChanged
(ConnectivityState source, Runnable callback) Registers a one-off callback that will be run if the connectivity state of the channel diverges from the givensource
, which is typically what has just been returned byManagedChannel.getState(boolean)
.InternalChannelz.ChannelStats.Builder.setState
(ConnectivityState state) abstract void
LoadBalancer.Helper.updateBalancingState
(ConnectivityState newState, LoadBalancer.SubchannelPicker newPicker) Set a new state with a new picker to the channel.Constructors in io.grpc with parameters of type ConnectivityStateModifierConstructorDescriptionprivate
ChannelStats
(String target, ConnectivityState state, InternalChannelz.ChannelTrace channelTrace, long callsStarted, long callsSucceeded, long callsFailed, long lastCallStartedNanos, List<InternalWithLogId> subchannels, List<InternalWithLogId> sockets) Creates an instance.private
ConnectivityStateInfo
(ConnectivityState state, Status status) -
Uses of ConnectivityState in io.grpc.grpclb
Methods in io.grpc.grpclb with parameters of type ConnectivityStateModifier and TypeMethodDescriptionprivate void
GrpclbState.maybeUpdatePicker
(ConnectivityState state, GrpclbState.RoundRobinPicker picker) Update the given picker to the helper if it's different from the current one. -
Uses of ConnectivityState in io.grpc.internal
Fields in io.grpc.internal declared as ConnectivityStateModifier and TypeFieldDescriptionprivate ConnectivityState
PickFirstLeafLoadBalancer.concludedState
private ConnectivityState
PickFirstLoadBalancer.currentState
private ConnectivityState
PickFirstLeafLoadBalancer.rawConnectivityState
private ConnectivityState
ConnectivityStateManager.state
private ConnectivityState
PickFirstLeafLoadBalancer.SubchannelData.state
Methods in io.grpc.internal that return ConnectivityStateModifier and TypeMethodDescription(package private) ConnectivityState
PickFirstLeafLoadBalancer.getConcludedConnectivityState()
private ConnectivityState
PickFirstLeafLoadBalancer.SubchannelData.getHealthState()
(package private) ConnectivityState
ConnectivityStateManager.getState()
Gets the current connectivity state of the channel.ForwardingManagedChannel.getState
(boolean requestConnection) (package private) ConnectivityState
InternalSubchannel.getState()
ManagedChannelImpl.getState
(boolean requestConnection) OobChannel.getState
(boolean requestConnectionIgnored) PickFirstLeafLoadBalancer.SubchannelData.getState()
Methods in io.grpc.internal with parameters of type ConnectivityStateModifier and TypeMethodDescriptionprivate void
InternalSubchannel.gotoNonErrorState
(ConnectivityState newState) (package private) void
ConnectivityStateManager.gotoState
(ConnectivityState newState) Connectivity state is changed to the specified value.(package private) void
ConnectivityStateManager.notifyWhenStateChanged
(Runnable callback, Executor executor, ConnectivityState source) Adds a listener for state change event.void
ForwardingManagedChannel.notifyWhenStateChanged
(ConnectivityState source, Runnable callback) void
ManagedChannelImpl.notifyWhenStateChanged
(ConnectivityState source, Runnable callback) void
ManagedChannelImpl.LbHelperImpl.updateBalancingState
(ConnectivityState newState, LoadBalancer.SubchannelPicker newPicker) private void
PickFirstLeafLoadBalancer.updateBalancingState
(ConnectivityState state, LoadBalancer.SubchannelPicker picker) private void
PickFirstLoadBalancer.updateBalancingState
(ConnectivityState state, LoadBalancer.SubchannelPicker picker) private void
PickFirstLeafLoadBalancer.SubchannelData.updateState
(ConnectivityState newState) Constructors in io.grpc.internal with parameters of type ConnectivityStateModifierConstructorDescriptionSubchannelData
(LoadBalancer.Subchannel subchannel, ConnectivityState state) -
Uses of ConnectivityState in io.grpc.protobuf.services
Methods in io.grpc.protobuf.services with parameters of type ConnectivityStateModifier and TypeMethodDescription(package private) static ChannelConnectivityState
ChannelzProtoUtil.toChannelConnectivityState
(ConnectivityState s) (package private) static ChannelConnectivityState.State
ChannelzProtoUtil.toState
(ConnectivityState state) -
Uses of ConnectivityState in io.grpc.rls
Fields in io.grpc.rls declared as ConnectivityStateModifier and TypeFieldDescriptionprivate ConnectivityState
SubchannelStateManagerImpl.currentState
private ConnectivityState
CachingRlsLbClient.BackoffRefreshListener.prevState
private ConnectivityState
CachingRlsLbClient.RlsLbHelper.state
private ConnectivityState
LbPolicyConfiguration.ChildPolicyWrapper.state
Fields in io.grpc.rls with type parameters of type ConnectivityStateModifier and TypeFieldDescriptionprivate final HashMap
<String, ConnectivityState> SubchannelStateManagerImpl.stateMap
private final com.google.common.collect.Multiset
<ConnectivityState> SubchannelStateManagerImpl.stateMultiset
Methods in io.grpc.rls that return ConnectivityStateModifier and TypeMethodDescriptionSubchannelStateManager.getAggregatedState()
Returns representative subchannel status from all registered subchannels.SubchannelStateManagerImpl.getAggregatedState()
LbPolicyConfiguration.ChildPolicyWrapper.getState()
Returns current subchannel state for given subchannel name if exists, otherwise returnsnull
.Methods in io.grpc.rls with parameters of type ConnectivityStateModifier and TypeMethodDescriptionvoid
CachingRlsLbClient.BackoffRefreshListener.onStatusChanged
(ConnectivityState newState) void
LbPolicyConfiguration.ChildLbStatusListener.onStatusChanged
(ConnectivityState newState) Notifies when child lb status changes.void
CachingRlsLbClient.RlsLbHelper.updateBalancingState
(ConnectivityState newState, LoadBalancer.SubchannelPicker newPicker) void
ChildLoadBalancerHelper.updateBalancingState
(ConnectivityState newState, LoadBalancer.SubchannelPicker unused) Updates balancing state from one or more subchannels tracked in theSubchannelStateManager
.void
LbPolicyConfiguration.ChildPolicyWrapper.ChildPolicyReportingHelper.updateBalancingState
(ConnectivityState newState, LoadBalancer.SubchannelPicker newPicker) void
SubchannelStateManager.updateState
(String name, ConnectivityState newState) Registers and updates state for given subchannel.void
SubchannelStateManagerImpl.updateState
(String name, ConnectivityState newState) -
Uses of ConnectivityState in io.grpc.util
Fields in io.grpc.util declared as ConnectivityStateModifier and TypeFieldDescriptionprotected ConnectivityState
MultiChildLoadBalancer.currentConnectivityState
private ConnectivityState
MultiChildLoadBalancer.ChildLbState.currentState
private ConnectivityState
GracefulSwitchLoadBalancer.pendingState
Methods in io.grpc.util that return ConnectivityStateModifier and TypeMethodDescriptionprotected static ConnectivityState
MultiChildLoadBalancer.aggregateState
(ConnectivityState overallState, ConnectivityState childState) final ConnectivityState
MultiChildLoadBalancer.ChildLbState.getCurrentState()
Methods in io.grpc.util with parameters of type ConnectivityStateModifier and TypeMethodDescriptionprotected static ConnectivityState
MultiChildLoadBalancer.aggregateState
(ConnectivityState overallState, ConnectivityState childState) protected final void
MultiChildLoadBalancer.ChildLbState.setCurrentState
(ConnectivityState newState) void
ForwardingLoadBalancerHelper.updateBalancingState
(ConnectivityState newState, LoadBalancer.SubchannelPicker newPicker) void
MultiChildLoadBalancer.ChildLbState.ChildLbStateHelper.updateBalancingState
(ConnectivityState newState, LoadBalancer.SubchannelPicker newPicker) Update current state and picker for this child and then useMultiChildLoadBalancer.updateOverallBalancingState()
for the parent LB.void
OutlierDetectionLoadBalancer.ChildHelper.updateBalancingState
(ConnectivityState newState, LoadBalancer.SubchannelPicker newPicker) private void
RoundRobinLoadBalancer.updateBalancingState
(ConnectivityState state, LoadBalancer.SubchannelPicker picker)