Package io.grpc

Interface LoadBalancer.PickDetailsConsumer

Enclosing class:
LoadBalancer

@Internal public static interface LoadBalancer.PickDetailsConsumer
Receives information about the pick being chosen.
  • Method Summary

    Modifier and Type
    Method
    Description
    default void
    Optional labels that provide context of how the pick was routed.
  • Method Details

    • 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 is null