Package io.grpc.internal
Class PickSubchannelArgsImpl
java.lang.Object
io.grpc.LoadBalancer.PickSubchannelArgs
io.grpc.internal.PickSubchannelArgsImpl
Implementation of
LoadBalancer.PickSubchannelArgs.-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final CallOptionsprivate final Metadataprivate final MethodDescriptor<?, ?> private final LoadBalancer.PickDetailsConsumer -
Constructor Summary
ConstructorsConstructorDescriptionPickSubchannelArgsImpl(MethodDescriptor<?, ?> method, Metadata headers, CallOptions callOptions, LoadBalancer.PickDetailsConsumer pickDetailsConsumer) Creates call args object for given method with its call options, metadata. -
Method Summary
Modifier and TypeMethodDescriptionbooleanCall options.Headers of the call.MethodDescriptor<?, ?> Call method.Gets an object that can be informed about what sort of pick was made.inthashCode()final StringtoString()
-
Field Details
-
callOptions
-
headers
-
method
-
pickDetailsConsumer
-
-
Constructor Details
-
PickSubchannelArgsImpl
public PickSubchannelArgsImpl(MethodDescriptor<?, ?> method, Metadata headers, CallOptions callOptions, LoadBalancer.PickDetailsConsumer pickDetailsConsumer) Creates call args object for given method with its call options, metadata.
-
-
Method Details
-
getHeaders
Description copied from class:LoadBalancer.PickSubchannelArgsHeaders of the call.LoadBalancer.SubchannelPicker.pickSubchannel(io.grpc.LoadBalancer.PickSubchannelArgs)may mutate it before before returning.- Specified by:
getHeadersin classLoadBalancer.PickSubchannelArgs
-
getCallOptions
Description copied from class:LoadBalancer.PickSubchannelArgsCall options.- Specified by:
getCallOptionsin classLoadBalancer.PickSubchannelArgs
-
getMethodDescriptor
Description copied from class:LoadBalancer.PickSubchannelArgsCall method.- Specified by:
getMethodDescriptorin classLoadBalancer.PickSubchannelArgs
-
getPickDetailsConsumer
Description copied from class:LoadBalancer.PickSubchannelArgsGets an object that can be informed about what sort of pick was made.- Overrides:
getPickDetailsConsumerin classLoadBalancer.PickSubchannelArgs
-
equals
-
hashCode
public int hashCode() -
toString
-