Package io.grpc.xds

Class PriorityLoadBalancer.ChildLbState

  • Enclosing class:
    PriorityLoadBalancer

    private final class PriorityLoadBalancer.ChildLbState
    extends java.lang.Object
    • 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 the priorities 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 cached resolvedAddresses, or when priority lb receives a new resolved addresses while the child already exists.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • priority

        final java.lang.String priority
      • 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 Detail

      • ChildLbState

        ChildLbState​(java.lang.String priority,
                     boolean ignoreReresolution)
    • Method Detail

      • 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.