Package io.grpc.xds
Class PriorityLoadBalancer.ChildLbState
- java.lang.Object
-
- io.grpc.xds.PriorityLoadBalancer.ChildLbState
-
- Enclosing class:
- PriorityLoadBalancer
private final class PriorityLoadBalancer.ChildLbState extends java.lang.Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description (package private) classPriorityLoadBalancer.ChildLbState.ChildHelper(package private) classPriorityLoadBalancer.ChildLbState.FailOverTask
-
Field Summary
Fields Modifier and Type Field Description (package private) PriorityLoadBalancer.ChildLbState.ChildHelperchildHelper(package private) io.grpc.ConnectivityStateconnectivityState(package private) io.grpc.SynchronizationContext.ScheduledHandledeletionTimer(package private) io.grpc.SynchronizationContext.ScheduledHandlefailOverTimer(package private) io.grpc.util.GracefulSwitchLoadBalancerlb(package private) io.grpc.LoadBalancer.SubchannelPickerpicker(package private) java.lang.Stringpriority(package private) booleanseenReadyOrIdleSinceTransientFailure
-
Constructor Summary
Constructors Constructor Description ChildLbState(java.lang.String priority, boolean ignoreReresolution)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description (package private) voiddeactivate()Called when either the child is removed by config update, or a higher priority becomes READY.(package private) voidreactivate()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.(package private) voidtearDown()(package private) voidupdateResolvedAddresses()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.
-
-
-
Field Detail
-
priority
final java.lang.String priority
-
childHelper
final PriorityLoadBalancer.ChildLbState.ChildHelper childHelper
-
lb
final io.grpc.util.GracefulSwitchLoadBalancer lb
-
failOverTimer
io.grpc.SynchronizationContext.ScheduledHandle failOverTimer
-
seenReadyOrIdleSinceTransientFailure
boolean seenReadyOrIdleSinceTransientFailure
-
deletionTimer
@Nullable io.grpc.SynchronizationContext.ScheduledHandle deletionTimer
-
connectivityState
io.grpc.ConnectivityState connectivityState
-
picker
io.grpc.LoadBalancer.SubchannelPicker picker
-
-
Method Detail
-
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.
-
-