Uses of Class
Packages that use ConnectivityState Package Description io.grpcThe gRPC core public API. io.grpc.utilUtilities with advanced features in the core layer that user can optionally use.
Uses of ConnectivityState in io.grpc
Methods in io.grpc that return ConnectivityState Modifier and Type Method Description
getState()Returns the state.
getState(boolean requestConnection)Gets the current connectivity state.
valueOf(java.lang.String name)Returns the enum constant of this type with the specified name.
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 ConnectivityState Modifier and Type Method Description
forNonError(ConnectivityState state)Returns an instance for a state that is not
notifyWhenStateChanged(ConnectivityState source, java.lang.Runnable callback)Registers a one-off callback that will be run if the connectivity state of the channel diverges from the given
source, which is typically what has just been returned by
updateBalancingState(ConnectivityState newState, LoadBalancer.SubchannelPicker newPicker)Set a new state with a new picker to the channel.
Uses of ConnectivityState in io.grpc.util
Methods in io.grpc.util with parameters of type ConnectivityState Modifier and Type Method Description
updateBalancingState(ConnectivityState newState, LoadBalancer.SubchannelPicker newPicker)