Class OrcaOobUtil.OrcaReportingConfig.Builder
java.lang.Object
io.grpc.xds.orca.OrcaOobUtil.OrcaReportingConfig.Builder
- Enclosing class:
OrcaOobUtil.OrcaReportingConfig
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Creates a newOrcaOobUtil.OrcaReportingConfigobject.setReportInterval(long reportInterval, TimeUnit unit) Sets the maximum expected interval of receiving out-of-band ORCA report.
-
Field Details
-
reportIntervalNanos
private long reportIntervalNanos
-
-
Constructor Details
-
Builder
Builder()
-
-
Method Details
-
setReportInterval
public OrcaOobUtil.OrcaReportingConfig.Builder setReportInterval(long reportInterval, TimeUnit unit) Sets the maximum expected interval of receiving out-of-band ORCA report. The actual reporting interval might be smaller if there are other load balancing policies requesting for more frequent cost metric report.- Parameters:
reportInterval- the maximum expected interval of receiving periodical ORCA reports.unit- time unit ofreportIntervalvalue.
-
build
Creates a newOrcaOobUtil.OrcaReportingConfigobject.
-