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 ConnectivityStateConnectivityStateInfo.stateprivate ConnectivityStateInternalChannelz.ChannelStats.Builder.statefinal ConnectivityStateInternalChannelz.ChannelStats.stateMethods in io.grpc that return ConnectivityStateModifier and TypeMethodDescriptionConnectivityStateInfo.getState()Returns the state.ManagedChannel.getState(boolean requestConnection) Gets the current connectivity state.static ConnectivityStateReturns 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 ConnectivityStateInfoConnectivityStateInfo.forNonError(ConnectivityState state) Returns an instance for a state that is notTRANSIENT_FAILURE.voidManagedChannel.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 voidLoadBalancer.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 ConnectivityStateModifierConstructorDescriptionprivateChannelStats(String target, ConnectivityState state, InternalChannelz.ChannelTrace channelTrace, long callsStarted, long callsSucceeded, long callsFailed, long lastCallStartedNanos, List<InternalWithLogId> subchannels, List<InternalWithLogId> sockets) Creates an instance.privateConnectivityStateInfo(ConnectivityState state, Status status) -
Uses of ConnectivityState in io.grpc.grpclb
Methods in io.grpc.grpclb with parameters of type ConnectivityStateModifier and TypeMethodDescriptionprivate voidGrpclbState.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 ConnectivityStatePickFirstLeafLoadBalancer.concludedStateprivate ConnectivityStatePickFirstLoadBalancer.currentStateprivate ConnectivityStatePickFirstLeafLoadBalancer.rawConnectivityStateprivate ConnectivityStateConnectivityStateManager.stateprivate ConnectivityStatePickFirstLeafLoadBalancer.SubchannelData.stateMethods in io.grpc.internal that return ConnectivityStateModifier and TypeMethodDescription(package private) ConnectivityStatePickFirstLeafLoadBalancer.getConcludedConnectivityState()private ConnectivityStatePickFirstLeafLoadBalancer.SubchannelData.getHealthState()(package private) ConnectivityStateConnectivityStateManager.getState()Gets the current connectivity state of the channel.ForwardingManagedChannel.getState(boolean requestConnection) (package private) ConnectivityStateInternalSubchannel.getState()ManagedChannelImpl.getState(boolean requestConnection) OobChannel.getState(boolean requestConnectionIgnored) PickFirstLeafLoadBalancer.SubchannelData.getState()Methods in io.grpc.internal with parameters of type ConnectivityStateModifier and TypeMethodDescriptionprivate voidInternalSubchannel.gotoNonErrorState(ConnectivityState newState) (package private) voidConnectivityStateManager.gotoState(ConnectivityState newState) Connectivity state is changed to the specified value.(package private) voidConnectivityStateManager.notifyWhenStateChanged(Runnable callback, Executor executor, ConnectivityState source) Adds a listener for state change event.voidForwardingManagedChannel.notifyWhenStateChanged(ConnectivityState source, Runnable callback) voidManagedChannelImpl.notifyWhenStateChanged(ConnectivityState source, Runnable callback) voidManagedChannelImpl.LbHelperImpl.updateBalancingState(ConnectivityState newState, LoadBalancer.SubchannelPicker newPicker) private voidPickFirstLeafLoadBalancer.updateBalancingState(ConnectivityState state, LoadBalancer.SubchannelPicker picker) private voidPickFirstLoadBalancer.updateBalancingState(ConnectivityState state, LoadBalancer.SubchannelPicker picker) private voidPickFirstLeafLoadBalancer.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 ChannelConnectivityStateChannelzProtoUtil.toChannelConnectivityState(ConnectivityState s) (package private) static ChannelConnectivityState.StateChannelzProtoUtil.toState(ConnectivityState state) -
Uses of ConnectivityState in io.grpc.rls
Fields in io.grpc.rls declared as ConnectivityStateModifier and TypeFieldDescriptionprivate ConnectivityStateSubchannelStateManagerImpl.currentStateprivate ConnectivityStateCachingRlsLbClient.BackoffRefreshListener.prevStateprivate ConnectivityStateCachingRlsLbClient.RlsLbHelper.stateprivate ConnectivityStateLbPolicyConfiguration.ChildPolicyWrapper.stateFields in io.grpc.rls with type parameters of type ConnectivityStateModifier and TypeFieldDescriptionprivate final HashMap<String, ConnectivityState> SubchannelStateManagerImpl.stateMapprivate final com.google.common.collect.Multiset<ConnectivityState> SubchannelStateManagerImpl.stateMultisetMethods 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 TypeMethodDescriptionvoidCachingRlsLbClient.BackoffRefreshListener.onStatusChanged(ConnectivityState newState) voidLbPolicyConfiguration.ChildLbStatusListener.onStatusChanged(ConnectivityState newState) Notifies when child lb status changes.voidCachingRlsLbClient.RlsLbHelper.updateBalancingState(ConnectivityState newState, LoadBalancer.SubchannelPicker newPicker) voidChildLoadBalancerHelper.updateBalancingState(ConnectivityState newState, LoadBalancer.SubchannelPicker unused) Updates balancing state from one or more subchannels tracked in theSubchannelStateManager.voidLbPolicyConfiguration.ChildPolicyWrapper.ChildPolicyReportingHelper.updateBalancingState(ConnectivityState newState, LoadBalancer.SubchannelPicker newPicker) voidSubchannelStateManager.updateState(String name, ConnectivityState newState) Registers and updates state for given subchannel.voidSubchannelStateManagerImpl.updateState(String name, ConnectivityState newState) -
Uses of ConnectivityState in io.grpc.util
Fields in io.grpc.util declared as ConnectivityStateModifier and TypeFieldDescriptionprotected ConnectivityStateMultiChildLoadBalancer.currentConnectivityStateprivate ConnectivityStateMultiChildLoadBalancer.ChildLbState.currentStateprivate ConnectivityStateGracefulSwitchLoadBalancer.pendingStateMethods in io.grpc.util that return ConnectivityStateModifier and TypeMethodDescriptionprotected static ConnectivityStateMultiChildLoadBalancer.aggregateState(ConnectivityState overallState, ConnectivityState childState) final ConnectivityStateMultiChildLoadBalancer.ChildLbState.getCurrentState()Methods in io.grpc.util with parameters of type ConnectivityStateModifier and TypeMethodDescriptionprotected static ConnectivityStateMultiChildLoadBalancer.aggregateState(ConnectivityState overallState, ConnectivityState childState) protected final voidMultiChildLoadBalancer.ChildLbState.setCurrentState(ConnectivityState newState) voidForwardingLoadBalancerHelper.updateBalancingState(ConnectivityState newState, LoadBalancer.SubchannelPicker newPicker) voidMultiChildLoadBalancer.ChildLbState.ChildLbStateHelper.updateBalancingState(ConnectivityState newState, LoadBalancer.SubchannelPicker newPicker) Update current state and picker for this child and then useMultiChildLoadBalancer.updateOverallBalancingState()for the parent LB.voidOutlierDetectionLoadBalancer.ChildHelper.updateBalancingState(ConnectivityState newState, LoadBalancer.SubchannelPicker newPicker) private voidRoundRobinLoadBalancer.updateBalancingState(ConnectivityState state, LoadBalancer.SubchannelPicker picker)