Package io.grpc.internal
Class PickSubchannelArgsImpl
java.lang.Object
io.grpc.LoadBalancer.PickSubchannelArgs
io.grpc.internal.PickSubchannelArgsImpl
Implementation of
LoadBalancer.PickSubchannelArgs
.-
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 TypeMethodDescriptionboolean
Call options.Headers of the call.MethodDescriptor
<?, ?> Call method.Gets an object that can be informed about what sort of pick was made.int
hashCode()
final String
toString()
-
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.PickSubchannelArgs
Headers of the call.LoadBalancer.SubchannelPicker.pickSubchannel(io.grpc.LoadBalancer.PickSubchannelArgs)
may mutate it before before returning.- Specified by:
getHeaders
in classLoadBalancer.PickSubchannelArgs
-
getCallOptions
Description copied from class:LoadBalancer.PickSubchannelArgs
Call options.- Specified by:
getCallOptions
in classLoadBalancer.PickSubchannelArgs
-
getMethodDescriptor
Description copied from class:LoadBalancer.PickSubchannelArgs
Call method.- Specified by:
getMethodDescriptor
in classLoadBalancer.PickSubchannelArgs
-
getPickDetailsConsumer
Description copied from class:LoadBalancer.PickSubchannelArgs
Gets an object that can be informed about what sort of pick was made.- Overrides:
getPickDetailsConsumer
in classLoadBalancer.PickSubchannelArgs
-
equals
-
hashCode
public int hashCode() -
toString
-