Package io.grpc.xds

Class PriorityLoadBalancer.ChildLbState

java.lang.Object
io.grpc.xds.PriorityLoadBalancer.ChildLbState
Enclosing class:
PriorityLoadBalancer

private final class PriorityLoadBalancer.ChildLbState extends Object
  • Field Details

    • priority

      final String priority
    • 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
  • 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 the priorities 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 cached resolvedAddresses, or when priority lb receives a new resolved addresses while the child already exists.