Interface LoadBalancer.PickDetailsConsumer
- All Known Implementing Classes:
PickDetailsConsumerImpl
- Enclosing class:
LoadBalancer
Receives information about the pick being chosen.
- Since:
- 1.2.0
-
Method Summary
Modifier and TypeMethodDescriptiondefault voidaddOptionalLabel(String key, String value) Optional labels that provide context of how the pick was routed.
-
Method Details
-
addOptionalLabel
Optional labels that provide context of how the pick was routed. Particularly helpful for per-RPC metrics.- Throws:
NullPointerException- if key or value isnull
-