Package | Description |
---|---|
io.grpc |
The gRPC core public API.
|
io.grpc.util |
Utilities with advanced features in the core layer that user can optionally use.
|
Modifier and Type | Method and Description |
---|---|
ConnectivityState |
ConnectivityStateInfo.getState()
Returns the state.
|
ConnectivityState |
ManagedChannel.getState(boolean requestConnection)
Gets the current connectivity state.
|
static ConnectivityState |
ConnectivityState.valueOf(String name)
Returns 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.
|
Modifier and Type | Method and Description |
---|---|
static ConnectivityStateInfo |
ConnectivityStateInfo.forNonError(ConnectivityState state)
Returns an instance for a state that is not
TRANSIENT_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 given
source , which is typically what has just been returned by ManagedChannel.getState(boolean) . |
abstract void |
LoadBalancer.Helper.updateBalancingState(ConnectivityState newState,
LoadBalancer.SubchannelPicker newPicker)
Set a new state with a new picker to the channel.
|
Modifier and Type | Method and Description |
---|---|
void |
ForwardingLoadBalancerHelper.updateBalancingState(ConnectivityState newState,
LoadBalancer.SubchannelPicker newPicker) |