Package io.grpc.protobuf.services
Class HealthCheckingLoadBalancerFactory.HelperImpl
java.lang.Object
io.grpc.LoadBalancer.Helper
io.grpc.util.ForwardingLoadBalancerHelper
io.grpc.protobuf.services.HealthCheckingLoadBalancerFactory.HelperImpl
- Enclosing class:
HealthCheckingLoadBalancerFactory
private final class HealthCheckingLoadBalancerFactory.HelperImpl
extends ForwardingLoadBalancerHelper
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final LoadBalancer.Helper
(package private) final HashSet
<HealthCheckingLoadBalancerFactory.HealthCheckState> (package private) String
private final SynchronizationContext
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionCreates a Subchannel, which is a logical connection to the given group of addresses which are considered equivalent.protected LoadBalancer.Helper
delegate()
Returns the underlying helper.(package private) void
setHealthCheckedService
(String service) toString()
Methods inherited from class io.grpc.util.ForwardingLoadBalancerHelper
createOobChannel, createOobChannel, createResolvingOobChannel, createResolvingOobChannelBuilder, createResolvingOobChannelBuilder, getAuthority, getChannelCredentials, getChannelLogger, getChannelTarget, getMetricRecorder, getNameResolverArgs, getNameResolverRegistry, getScheduledExecutorService, getSynchronizationContext, getUnsafeChannelCredentials, ignoreRefreshNameResolutionCheck, refreshNameResolution, updateBalancingState, updateOobChannelAddresses, updateOobChannelAddresses
-
Field Details
-
delegate
-
syncContext
-
healthCheckedService
-
hcStates
-
-
Constructor Details
-
HelperImpl
HelperImpl(LoadBalancer.Helper delegate)
-
-
Method Details
-
delegate
Description copied from class:ForwardingLoadBalancerHelper
Returns the underlying helper.- Specified by:
delegate
in classForwardingLoadBalancerHelper
-
createSubchannel
Description copied from class:LoadBalancer.Helper
Creates a Subchannel, which is a logical connection to the given group of addresses which are considered equivalent. Theattrs
are custom attributes associated with this Subchannel, and can be accessed later throughSubchannel.getAttributes()
.The LoadBalancer is responsible for closing unused Subchannels, and closing all Subchannels within
LoadBalancer.shutdown()
.It must be called from
the Synchronization Context
- Overrides:
createSubchannel
in classForwardingLoadBalancerHelper
- Returns:
- Must return a valid Subchannel object, may not return null.
-
setHealthCheckedService
-
toString
- Overrides:
toString
in classForwardingLoadBalancerHelper
-