Package io.grpc.rls
Interface SubchannelStateManager
-
- All Known Implementing Classes:
SubchannelStateManagerImpl
interface SubchannelStateManager
SubchannelStateManager managesConnectivityState
of child subchannels.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ConnectivityState
getAggregatedState()
Returns representative subchannel status from all registered subchannels.ConnectivityState
getState(java.lang.String name)
Returns current subchannel state for given subchannel name if exists, otherwise returnsnull
.void
updateState(java.lang.String name, ConnectivityState newState)
Registers and updates state for given subchannel.
-
-
-
Method Detail
-
updateState
void updateState(java.lang.String name, ConnectivityState newState)
Registers and updates state for given subchannel.ConnectivityState.SHUTDOWN
unregisters the subchannel.
-
getState
@Nullable ConnectivityState getState(java.lang.String name)
Returns current subchannel state for given subchannel name if exists, otherwise returnsnull
.
-
getAggregatedState
ConnectivityState getAggregatedState()
Returns representative subchannel status from all registered subchannels.
-
-