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) Stringprivate 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.Helperdelegate()Returns the underlying helper.(package private) voidsetHealthCheckedService(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:ForwardingLoadBalancerHelperReturns the underlying helper.- Specified by:
delegatein classForwardingLoadBalancerHelper
-
createSubchannel
Description copied from class:LoadBalancer.HelperCreates a Subchannel, which is a logical connection to the given group of addresses which are considered equivalent. Theattrsare 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:
createSubchannelin classForwardingLoadBalancerHelper- Returns:
- Must return a valid Subchannel object, may not return null.
-
setHealthCheckedService
-
toString
- Overrides:
toStringin classForwardingLoadBalancerHelper
-