Interface OrcaPerRequestUtil.OrcaPerRequestReportListener

All Known Implementing Classes:
ClusterImplLoadBalancer.OrcaPerRpcListener, WeightedRoundRobinLoadBalancer.WeightedChildLbState.OrcaReportListener
Enclosing class:
OrcaPerRequestUtil

public static interface OrcaPerRequestUtil.OrcaPerRequestReportListener
The listener interface for receiving per-request ORCA reports from backends. The class that is interested in processing backend cost metrics implements this interface, and the object created with that class is registered with a component, using methods in OrcaPerRequestUtil. When an ORCA report is received, that object's onLoadReport method is invoked.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    onLoadReport(io.grpc.services.MetricReport report)
    Invoked when a per-request ORCA report is received.
  • Method Details

    • onLoadReport

      void onLoadReport(io.grpc.services.MetricReport report)
      Invoked when a per-request ORCA report is received.

      Note this callback will be invoked from the network thread as the RPC finishes, implementations should not block.

      Parameters:
      report - load report in the format of grpc MetricReport.