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 ClassesModifier and TypeClassDescriptionprivate class
Nested classes/interfaces inherited from class io.grpc.util.MultiChildLoadBalancer.ChildLbState
io.grpc.util.MultiChildLoadBalancer.ChildLbState.ChildLbStateHelper
-
Field Summary
FieldsModifier and TypeFieldDescription(package private) io.grpc.SynchronizationContext.ScheduledHandle
-
Constructor Summary
ConstructorsConstructorDescriptionClusterManagerLbState
(Object key, io.grpc.LoadBalancer.Factory policyFactory) -
Method Summary
Modifier and TypeMethodDescriptionprotected io.grpc.util.MultiChildLoadBalancer.ChildLbState.ChildLbStateHelper
(package private) void
(package private) void
protected void
shutdown()
Methods inherited from class io.grpc.util.MultiChildLoadBalancer.ChildLbState
getCurrentPicker, getCurrentState, getEag, getKey, getLb, getResolvedAddresses, setCurrentPicker, setCurrentState, setResolvedAddresses, toString
-
Field Details
-
deletionTimer
-
-
Constructor Details
-
ClusterManagerLbState
-
-
Method Details
-
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()
-