Class HealthCheckingLoadBalancerFactory.SubchannelImpl
java.lang.Object
io.grpc.LoadBalancer.Subchannel
io.grpc.util.ForwardingSubchannel
io.grpc.protobuf.services.HealthCheckingLoadBalancerFactory.SubchannelImpl
- Enclosing class:
HealthCheckingLoadBalancerFactory
-
Field Summary
FieldsModifier and TypeFieldDescription(package private) final LoadBalancer.Subchannel(package private) final HealthCheckingLoadBalancerFactory.HealthCheckState -
Constructor Summary
ConstructorsConstructorDescriptionSubchannelImpl(LoadBalancer.Subchannel delegate, HealthCheckingLoadBalancerFactory.HealthCheckState hcState) -
Method Summary
Modifier and TypeMethodDescriptionprotected LoadBalancer.Subchanneldelegate()Returns the underlying Subchannel.voidstart(LoadBalancer.SubchannelStateListener listener) Starts the Subchannel.Methods inherited from class ForwardingSubchannel
asChannel, getAllAddresses, getAttributes, getChannelLogger, getConnectedAddressAttributes, getInternalSubchannel, requestConnection, shutdown, toString, updateAddressesMethods inherited from class LoadBalancer.Subchannel
getAddresses
-
Field Details
-
delegate
-
hcState
-
-
Constructor Details
-
SubchannelImpl
SubchannelImpl(LoadBalancer.Subchannel delegate, HealthCheckingLoadBalancerFactory.HealthCheckState hcState)
-
-
Method Details
-
delegate
Description copied from class:ForwardingSubchannelReturns the underlying Subchannel.- Specified by:
delegatein classForwardingSubchannel
-
start
Description copied from class:LoadBalancer.SubchannelStarts the Subchannel. Can only be called once.Must be called prior to any other method on this class, except for
LoadBalancer.Subchannel.shutdown()which may be called at any time.Must be called from the
Synchronization Context, otherwise it may throw. See #5015 for more discussions.- Overrides:
startin classForwardingSubchannel- Parameters:
listener- receives state updates for this Subchannel.
-