Class WorkerDeploymentOptions.Builder
java.lang.Object
io.temporal.worker.WorkerDeploymentOptions.Builder
- Enclosing class:
WorkerDeploymentOptions
-
Method Summary
Modifier and TypeMethodDescriptionbuild()setDefaultVersioningBehavior(VersioningBehavior defaultVersioningBehavior) Provides a default Versioning Behavior to workflows that do not set one with theWorkflowVersioningBehaviorannotation.setUseVersioning(boolean useVersioning) If set, opts this worker into the Worker Deployment Versioning feature.setVersion(WorkerDeploymentVersion version) Assign a Deployment Version identifier to this worker.
-
Method Details
-
setUseVersioning
If set, opts this worker into the Worker Deployment Versioning feature. It will only operate on workflows it claims to be compatible with. You must also callsetVersion(WorkerDeploymentVersion)} if this flag is true. -
setVersion
Assign a Deployment Version identifier to this worker. -
setDefaultVersioningBehavior
public WorkerDeploymentOptions.Builder setDefaultVersioningBehavior(VersioningBehavior defaultVersioningBehavior) Provides a default Versioning Behavior to workflows that do not set one with theWorkflowVersioningBehaviorannotation.NOTE: When the Deployment-based Worker Versioning feature is on, and default versioning behavior is unspecified, workflows that do not set the Versioning Behavior will fail at registration time.
-
build
-