Class ResourceBasedController
java.lang.Object
io.temporal.worker.tuning.ResourceBasedController
Is used by
ResourceBasedSlotSupplier and ResourceBasedTuner to make decisions
about whether slots should be handed out based on system resource usage.-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionResourceBasedController(ResourceBasedControllerOptions options, SystemResourceInfo systemInfoSupplier) Construct a controller with the given options and system info supplier. -
Method Summary
Modifier and TypeMethodDescriptionstatic ResourceBasedControllerConstruct a controller with the given options.voidsetMetricsScope(com.uber.m3.tally.Scope metricsScope) Visible for internal usage.
-
Field Details
-
options
-
-
Constructor Details
-
ResourceBasedController
public ResourceBasedController(ResourceBasedControllerOptions options, SystemResourceInfo systemInfoSupplier) Construct a controller with the given options and system info supplier. Users should prefernewSystemInfoController(ResourceBasedControllerOptions).
-
-
Method Details
-
newSystemInfoController
public static ResourceBasedController newSystemInfoController(ResourceBasedControllerOptions options) Construct a controller with the given options. If you want to use resource-based tuning for all slot suppliers, preferResourceBasedTuner. -
setMetricsScope
public void setMetricsScope(com.uber.m3.tally.Scope metricsScope) Visible for internal usage. Can only be set once.
-