Package io.grpc.rls
Interface SubchannelStateManager
- All Known Implementing Classes:
SubchannelStateManagerImpl
interface SubchannelStateManager
SubchannelStateManager manages
ConnectivityState
of child subchannels.-
Method Summary
Modifier and TypeMethodDescriptionReturns representative subchannel status from all registered subchannels.Returns current subchannel state for given subchannel name if exists, otherwise returnsnull
.void
updateState
(String name, ConnectivityState newState) Registers and updates state for given subchannel.
-
Method Details
-
updateState
Registers and updates state for given subchannel.ConnectivityState.SHUTDOWN
unregisters the subchannel. -
getState
Returns current subchannel state for given subchannel name if exists, otherwise returnsnull
. -
getAggregatedState
ConnectivityState getAggregatedState()Returns representative subchannel status from all registered subchannels.
-