Uses of Enum Class
io.grpc.ConnectivityState
Packages that use ConnectivityState
Package
Description
The gRPC core public API.
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 ConnectivityStateMethods 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 class with the specified name.static ConnectivityState[]
ConnectivityState.values()
Returns an array containing the constants of this enum class, 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. -
Uses of ConnectivityState in io.grpc.util
Fields in io.grpc.util declared as ConnectivityStateModifier and TypeFieldDescriptionprotected ConnectivityState
MultiChildLoadBalancer.currentConnectivityState
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.