Modifier and Type | Method and Description |
---|---|
static ConnectivityStateInfo |
ConnectivityStateInfo.forNonError(ConnectivityState state)
Returns an instance for a state that is not
TRANSIENT_FAILURE . |
static ConnectivityStateInfo |
ConnectivityStateInfo.forTransientFailure(Status error)
Returns an instance for
TRANSIENT_FAILURE , associated with an error status. |
Modifier and Type | Method and Description |
---|---|
void |
LoadBalancer.handleSubchannelState(LoadBalancer.Subchannel subchannel,
ConnectivityStateInfo stateInfo)
Deprecated.
This method will be removed. Stop overriding it. Instead, pass
LoadBalancer.SubchannelStateListener to LoadBalancer.Subchannel.start(io.grpc.LoadBalancer.SubchannelStateListener) to receive Subchannel state
updates |
void |
LoadBalancer.SubchannelStateListener.onSubchannelState(ConnectivityStateInfo newState)
Handles a state change on a Subchannel.
|