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
ClusterManagerLoadBalancer.ClusterManagerLbState.ClusterManagerChildHelper
-
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()
-
-
-
Method Detail
-
createChildHelper
protected io.grpc.util.MultiChildLoadBalancer.ChildLbState.ChildLbStateHelper createChildHelper()
- Overrides:
createChildHelper
in classio.grpc.util.MultiChildLoadBalancer.ChildLbState
-
shutdown
protected void shutdown()
- Overrides:
shutdown
in classio.grpc.util.MultiChildLoadBalancer.ChildLbState
-
reactivateChild
void reactivateChild()
-
deactivateChild
void deactivateChild()
-
-