Class PriorityLoadBalancer.ChildLbState
java.lang.Object
io.grpc.xds.PriorityLoadBalancer.ChildLbState
- Enclosing class:
PriorityLoadBalancer
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescription(package private) final class(package private) final class -
Field Summary
FieldsModifier and TypeFieldDescription(package private) final PriorityLoadBalancer.ChildLbState.ChildHelper(package private) io.grpc.ConnectivityState(package private) io.grpc.SynchronizationContext.ScheduledHandle(package private) io.grpc.SynchronizationContext.ScheduledHandle(package private) final io.grpc.util.GracefulSwitchLoadBalancer(package private) io.grpc.LoadBalancer.SubchannelPicker(package private) final String(package private) boolean -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) voidCalled when either the child is removed by config update, or a higher priority becomes READY.(package private) voidCalled when the child becomes a priority that is or appears before the first READY one in theprioritieslist, due to either config update or balancing state update.(package private) voidtearDown()(package private) voidCalled either when the child is just created and in this case updated with the cachedresolvedAddresses, or when priority lb receives a new resolved addresses while the child already exists.
-
Field Details
-
priority
-
childHelper
-
lb
final io.grpc.util.GracefulSwitchLoadBalancer lb -
failOverTimer
io.grpc.SynchronizationContext.ScheduledHandle failOverTimer -
seenReadyOrIdleSinceTransientFailure
boolean seenReadyOrIdleSinceTransientFailure -
deletionTimer
-
connectivityState
io.grpc.ConnectivityState connectivityState -
picker
io.grpc.LoadBalancer.SubchannelPicker picker
-
-
Constructor Details
-
ChildLbState
ChildLbState(String priority, boolean ignoreReresolution)
-
-
Method Details
-
reactivate
void reactivate()Called when the child becomes a priority that is or appears before the first READY one in theprioritieslist, due to either config update or balancing state update. -
deactivate
void deactivate()Called when either the child is removed by config update, or a higher priority becomes READY. -
tearDown
void tearDown() -
updateResolvedAddresses
void updateResolvedAddresses()Called either when the child is just created and in this case updated with the cachedresolvedAddresses, or when priority lb receives a new resolved addresses while the child already exists.
-