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) class
PriorityLoadBalancer.ChildLbState.ChildHelper
(package private) class
PriorityLoadBalancer.ChildLbState.FailOverTask
-
Field Summary
Fields Modifier and Type Field Description (package private) PriorityLoadBalancer.ChildLbState.ChildHelper
childHelper
(package private) io.grpc.ConnectivityState
connectivityState
(package private) io.grpc.SynchronizationContext.ScheduledHandle
deletionTimer
(package private) io.grpc.SynchronizationContext.ScheduledHandle
failOverTimer
(package private) io.grpc.util.GracefulSwitchLoadBalancer
lb
(package private) io.grpc.LoadBalancer.SubchannelPicker
picker
(package private) java.lang.String
priority
(package private) boolean
seenReadyOrIdleSinceTransientFailure
-
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) void
deactivate()
Called when either the child is removed by config update, or a higher priority becomes READY.(package private) void
reactivate()
Called when the child becomes a priority that is or appears before the first READY one in thepriorities
list, due to either config update or balancing state update.(package private) void
tearDown()
(package private) 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.
-
-
-
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 thepriorities
list, 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.
-
-