Package io.grpc

Interface LoadBalancer.PickDetailsConsumer

  • Enclosing class:
    LoadBalancer

    @Internal
    public static interface LoadBalancer.PickDetailsConsumer
    Receives information about the pick being chosen.
    • 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 is null