Package io.grpc
Interface LoadBalancer.PickDetailsConsumer
-
- Enclosing class:
- LoadBalancer
@Internal public static interface LoadBalancer.PickDetailsConsumer
Receives information about the pick being chosen.
-
-
Method Summary
All Methods Instance Methods Default Methods Modifier and Type Method Description default void
addOptionalLabel(String key, String value)
Optional labels that provide context of how the pick was routed.
-
-
-
Method Detail
-
addOptionalLabel
default void addOptionalLabel(String key, String value)
Optional labels that provide context of how the pick was routed. Particularly helpful for per-RPC metrics.- Throws:
NullPointerException
- if key or value isnull
-
-