Package io.grpc.xds

Class ClusterManagerLoadBalancer.ClusterManagerLbState

java.lang.Object
io.grpc.util.MultiChildLoadBalancer.ChildLbState
io.grpc.xds.ClusterManagerLoadBalancer.ClusterManagerLbState
Enclosing class:
ClusterManagerLoadBalancer

private class ClusterManagerLoadBalancer.ClusterManagerLbState extends io.grpc.util.MultiChildLoadBalancer.ChildLbState
This differs from the base class in the use of the deletion timer. When it is deactivated, rather than immediately calling shutdown it starts a timer. If shutdown or reactivate are called before the timer fires, the timer is canceled. Otherwise, time timer calls shutdown and removes the child from the petiole policy when it is triggered.
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    private class 
     

    Nested classes/interfaces inherited from class io.grpc.util.MultiChildLoadBalancer.ChildLbState

    io.grpc.util.MultiChildLoadBalancer.ChildLbState.ChildLbStateHelper
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    (package private) io.grpc.SynchronizationContext.ScheduledHandle
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    ClusterManagerLbState(Object key, io.grpc.LoadBalancer.Factory policyFactory)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected io.grpc.util.MultiChildLoadBalancer.ChildLbState.ChildLbStateHelper
     
    (package private) void
     
    (package private) void
     
    protected void
     

    Methods inherited from class io.grpc.util.MultiChildLoadBalancer.ChildLbState

    getCurrentPicker, getCurrentState, getEag, getKey, getLb, getResolvedAddresses, setCurrentPicker, setCurrentState, setResolvedAddresses, toString

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Field Details

    • deletionTimer

      @Nullable io.grpc.SynchronizationContext.ScheduledHandle deletionTimer
  • Constructor Details

    • ClusterManagerLbState

      public ClusterManagerLbState(Object key, io.grpc.LoadBalancer.Factory policyFactory)
  • Method Details

    • createChildHelper

      protected io.grpc.util.MultiChildLoadBalancer.ChildLbState.ChildLbStateHelper createChildHelper()
      Overrides:
      createChildHelper in class io.grpc.util.MultiChildLoadBalancer.ChildLbState
    • shutdown

      protected void shutdown()
      Overrides:
      shutdown in class io.grpc.util.MultiChildLoadBalancer.ChildLbState
    • reactivateChild

      void reactivateChild()
    • deactivateChild

      void deactivateChild()