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 float
errorUtilizationPenalty
-
Constructor Summary
Constructors Constructor Description OrcaReportListener(float errorUtilizationPenalty)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
onLoadReport(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.OrcaPerRequestReportListener
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.
- Specified by:
onLoadReport
in interfaceOrcaOobUtil.OrcaOobReportListener
- Specified by:
onLoadReport
in interfaceOrcaPerRequestUtil.OrcaPerRequestReportListener
- Parameters:
report
- load report in the format of grpcMetricReport
.
-
-