Class WorkerDeploymentVersion
java.lang.Object
io.temporal.common.WorkerDeploymentVersion
Represents the version of a specific worker deployment.
-
Constructor Summary
ConstructorsConstructorDescriptionWorkerDeploymentVersion(String deploymentName, String buildId) Build a worker deployment version from an explicit deployment name and build ID. -
Method Summary
Modifier and TypeMethodDescriptionbooleanstatic WorkerDeploymentVersionfromCanonicalString(String canonicalString) Build a worker deployment version from a canonical string representation.inthashCode()toString()
-
Constructor Details
-
WorkerDeploymentVersion
-
-
Method Details
-
fromCanonicalString
Build a worker deployment version from a canonical string representation.- Parameters:
canonicalString- The canonical string representation of the worker deployment version, formatted as "deploymentName.buildId". Deployment name must not have a "." in it.- Returns:
- A new instance of
WorkerDeploymentVersion. - Throws:
IllegalArgumentException- if the input string is not in the expected format.
-
toCanonicalString
- Returns:
- The canonical string representation of this worker deployment version.
-
getDeploymentName
- Returns:
- The name of the deployment.
-
getBuildId
- Returns:
- The Build ID of this version.
-
equals
-
hashCode
-
toString
-