Class ResourceBasedSlotOptions.Builder
java.lang.Object
io.temporal.worker.tuning.ResourceBasedSlotOptions.Builder
- Enclosing class:
ResourceBasedSlotOptions
-
Method Summary
Modifier and TypeMethodDescriptionbuild()setMaximumSlots(int maximumSlots) setMinimumSlots(int minimumSlots) setRampThrottle(Duration rampThrottle)
-
Method Details
-
setMinimumSlots
- Parameters:
minimumSlots- minimum number of slots that will be issued without any resource checks
-
setMaximumSlots
- Parameters:
maximumSlots- maximum number of slots that will ever be issued
-
setRampThrottle
- Parameters:
rampThrottle- time to wait between slot issuance. This value matters because how many resources a task will use cannot be determined ahead of time, and thus the system should wait to see how much resources are used before issuing more slots.
-
build
-