Package io.grpc.xds
Class WeightedRoundRobinLoadBalancer.WeightedChildLbState.OrcaReportListener
- java.lang.Object
-
- io.grpc.xds.WeightedRoundRobinLoadBalancer.WeightedChildLbState.OrcaReportListener
-
- All Implemented Interfaces:
OrcaOobUtil.OrcaOobReportListener,OrcaPerRequestUtil.OrcaPerRequestReportListener
- Enclosing class:
- WeightedRoundRobinLoadBalancer.WeightedChildLbState
final class WeightedRoundRobinLoadBalancer.WeightedChildLbState.OrcaReportListener extends java.lang.Object implements OrcaPerRequestUtil.OrcaPerRequestReportListener, OrcaOobUtil.OrcaOobReportListener
-
-
Field Summary
Fields Modifier and Type Field Description private floaterrorUtilizationPenalty
-
Constructor Summary
Constructors Constructor Description OrcaReportListener(float errorUtilizationPenalty)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidonLoadReport(io.grpc.services.MetricReport report)Invoked when a per-request ORCA report is received.
-
-
-
Method Detail
-
onLoadReport
public void onLoadReport(io.grpc.services.MetricReport report)
Description copied from interface:OrcaPerRequestUtil.OrcaPerRequestReportListenerInvoked 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.
- Specified by:
onLoadReportin interfaceOrcaOobUtil.OrcaOobReportListener- Specified by:
onLoadReportin interfaceOrcaPerRequestUtil.OrcaPerRequestReportListener- Parameters:
report- load report in the format of grpcMetricReport.
-
-