Class VersionPreference
java.lang.Object
io.temporal.worker.VersionPreference
Version preference returned by
PreferredVersionProvider.-
Method Summary
Modifier and TypeMethodDescriptionReturns a preference that clamps the version into the call's supported range before recording.booleanintinthashCode()booleanstatic VersionPreferenceof(int version) Creates a preference forversion.toString()
-
Method Details
-
of
Creates a preference forversion. If the version is outside the supported range for the call, the SDK fails the workflow task unlessclampToSupportedRange()is used. -
clampToSupportedRange
Returns a preference that clamps the version into the call's supported range before recording. -
getVersion
public int getVersion() -
isClampToSupportedRange
public boolean isClampToSupportedRange() -
equals
-
hashCode
-
toString
-