Package io.temporal.worker
Class WorkerDeploymentOptions.Builder
- java.lang.Object
-
- io.temporal.worker.WorkerDeploymentOptions.Builder
-
- Enclosing class:
- WorkerDeploymentOptions
public static final class WorkerDeploymentOptions.Builder extends java.lang.Object
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description WorkerDeploymentOptionsbuild()WorkerDeploymentOptions.BuildersetDefaultVersioningBehavior(VersioningBehavior defaultVersioningBehavior)Provides a default Versioning Behavior to workflows that do not set one with theWorkflowVersioningBehaviorannotation.WorkerDeploymentOptions.BuildersetUseVersioning(boolean useVersioning)If set, opts this worker into the Worker Deployment Versioning feature.WorkerDeploymentOptions.BuildersetVersion(WorkerDeploymentVersion version)Assign a Deployment Version identifier to this worker.
-
-
-
Method Detail
-
setUseVersioning
public WorkerDeploymentOptions.Builder setUseVersioning(boolean useVersioning)
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
public WorkerDeploymentOptions.Builder setVersion(WorkerDeploymentVersion version)
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
public WorkerDeploymentOptions build()
-
-