Package io.grpc.xds.orca
Class OrcaPerRequestUtil.OrcaReportBroker
- java.lang.Object
-
- io.grpc.xds.orca.OrcaPerRequestUtil.OrcaReportBroker
-
- Enclosing class:
- OrcaPerRequestUtil
private static final class OrcaPerRequestUtil.OrcaReportBroker extends java.lang.ObjectA container class to hold registeredOrcaPerRequestUtil.OrcaPerRequestReportListeners and invoke all of them when anOrcaLoadReportis received.
-
-
Field Summary
Fields Modifier and Type Field Description private java.util.List<OrcaPerRequestUtil.OrcaPerRequestReportListener>listeners
-
Constructor Summary
Constructors Modifier Constructor Description privateOrcaReportBroker()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description (package private) voidaddListener(OrcaPerRequestUtil.OrcaPerRequestReportListener listener)(package private) voidonReport(OrcaLoadReport report)
-
-
-
Field Detail
-
listeners
private final java.util.List<OrcaPerRequestUtil.OrcaPerRequestReportListener> listeners
-
-
Method Detail
-
addListener
void addListener(OrcaPerRequestUtil.OrcaPerRequestReportListener listener)
-
onReport
void onReport(OrcaLoadReport report)
-
-