Class ConnectivityStateManager

java.lang.Object
io.grpc.internal.ConnectivityStateManager

@NotThreadSafe final class ConnectivityStateManager extends Object
Manages connectivity states of the channel. Used for ManagedChannel.getState(boolean) to read the current state of the channel, for ManagedChannel.notifyWhenStateChanged(ConnectivityState, Runnable) to add listeners to state change events, and for LoadBalancer.Helper#updateBalancingState to update the state and run the gotoState(ConnectivityState)s.