Package io.grpc
Class LoadBalancer.PickSubchannelArgs
- java.lang.Object
-
- io.grpc.LoadBalancer.PickSubchannelArgs
-
- Enclosing class:
- LoadBalancer
@ExperimentalApi("https://github.com/grpc/grpc-java/issues/1771") public abstract static class LoadBalancer.PickSubchannelArgs extends Object
Provides arguments for aLoadBalancer.SubchannelPicker.pickSubchannel( LoadBalancer.PickSubchannelArgs).- Since:
- 1.2.0
-
-
Constructor Summary
Constructors Constructor Description PickSubchannelArgs()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract CallOptionsgetCallOptions()Call options.abstract MetadatagetHeaders()Headers of the call.abstract MethodDescriptor<?,?>getMethodDescriptor()Call method.LoadBalancer.PickDetailsConsumergetPickDetailsConsumer()Gets an object that can be informed about what sort of pick was made.
-
-
-
Method Detail
-
getCallOptions
public abstract CallOptions getCallOptions()
Call options.- Since:
- 1.2.0
-
getHeaders
public abstract Metadata getHeaders()
Headers of the call.LoadBalancer.SubchannelPicker.pickSubchannel(io.grpc.LoadBalancer.PickSubchannelArgs)may mutate it before before returning.- Since:
- 1.2.0
-
getMethodDescriptor
public abstract MethodDescriptor<?,?> getMethodDescriptor()
Call method.- Since:
- 1.2.0
-
getPickDetailsConsumer
@Internal public LoadBalancer.PickDetailsConsumer getPickDetailsConsumer()
Gets an object that can be informed about what sort of pick was made.
-
-