Package io.grpc.xds

Class 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.
    • Field Summary

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

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

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected io.grpc.util.MultiChildLoadBalancer.ChildLbState.ChildLbStateHelper createChildHelper()  
      (package private) void deactivateChild()  
      (package private) void reactivateChild()  
      protected void shutdown()  
      • 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 Detail

      • deletionTimer

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

      • ClusterManagerLbState

        public ClusterManagerLbState​(java.lang.Object key,
                                     io.grpc.LoadBalancer.Factory policyFactory)
    • Method Detail

      • 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()