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.ChildLbStateThis 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 classClusterManagerLoadBalancer.ClusterManagerLbState.ClusterManagerChildHelper
-
Field Summary
Fields Modifier and Type Field Description (package private) io.grpc.SynchronizationContext.ScheduledHandledeletionTimer
-
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.ChildLbStateHelpercreateChildHelper()(package private) voiddeactivateChild()(package private) voidreactivateChild()protected voidshutdown()
-
-
-
Method Detail
-
createChildHelper
protected io.grpc.util.MultiChildLoadBalancer.ChildLbState.ChildLbStateHelper createChildHelper()
- Overrides:
createChildHelperin classio.grpc.util.MultiChildLoadBalancer.ChildLbState
-
shutdown
protected void shutdown()
- Overrides:
shutdownin classio.grpc.util.MultiChildLoadBalancer.ChildLbState
-
reactivateChild
void reactivateChild()
-
deactivateChild
void deactivateChild()
-
-