Package io.temporal.worker.tuning
package io.temporal.worker.tuning
-
ClassDescriptionContains information about a slot that is being used to execute an activity task.Can be used to create a
WorkerTunerwhich uses specificSlotSuppliers for each type of slot.FixedSizeSlotSupplier<SI extends SlotInfo>This implementation ofSlotSupplierprovides a fixed number of slots backed by a semaphore, and is the default behavior when a custom supplier is not explicitly specified.SystemResourceInfoimplementation that uses JVM-specific APIs to get resource usage.Contains information about a slot that is being used to execute a local activity.Contains information about a slot that is being used to execute a nexus task.Defines the behavior of a poller.A poller behavior that will automatically scale the number of pollers based on feedback from the server.A poller behavior that will attempt to poll as long as a slot is available, up to the provided maximum.Is used byResourceBasedSlotSupplierandResourceBasedTunerto make decisions about whether slots should be handed out based on system resource usage.Options for aResourceBasedControllerOptions resource-based slot suppliersResourceBasedSlotSupplier<SI extends SlotInfo>Implements aSlotSupplierbased on resource usage for a particular slot type.AWorkerTunerthat attempts to allocate slots based on available system resources.The base class that all slot info types used bySlotSupplierextend.SlotMarkUsedContext<SI extends SlotInfo>This class is handed out by implementations ofSlotSupplier.SlotReleaseContext<SI extends SlotInfo>The slot was released because some error was encountered before the slot could be used to actually process the task.The slot was released because it was never needed.The slot was released because the task was completed (regardless of status).The slot was released because the task will be retried.SlotReserveContext<SI extends SlotInfo>SlotSupplier<SI extends SlotInfo>A SlotSupplier is responsible for managing the number of slots available for a given type of task.Represents a future that will be completed with aSlotPermitwhen a slot is available.Implementors determine how resource usage is measured.WorkerTuners allow for the dynamic customization of some aspects of worker configuration.Contains information about a slot that is being used to execute a workflow task.