Class ProcessVersionInfo
java.lang.Object
io.camunda.zeebe.msgpack.value.BaseValue
io.camunda.zeebe.msgpack.value.ObjectValue
io.camunda.zeebe.msgpack.UnpackedObject
io.camunda.zeebe.engine.state.deployment.ProcessVersionInfo
- All Implemented Interfaces:
DbValue,Recyclable,BufferReader,BufferWriter
-
Field Summary
Fields inherited from class io.camunda.zeebe.msgpack.UnpackedObject
reader, writer -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddKnownVersion(long version) findVersionBefore(long version) longGets the highest version of a process.voidremoveKnownVersion(long version) setHighestVersionIfHigher(long version) Sets the highest version of a process.Methods inherited from class io.camunda.zeebe.msgpack.UnpackedObject
getLength, wrap, wrap, writeMethods inherited from class io.camunda.zeebe.msgpack.value.ObjectValue
declareProperty, equals, getEncodedLength, hashCode, isEmpty, read, reset, write, writeJSONMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface io.camunda.zeebe.util.buffer.BufferReader
wrapMethods inherited from interface io.camunda.zeebe.util.buffer.BufferWriter
getLength, writeMethods inherited from interface io.camunda.zeebe.msgpack.Recyclable
reset
-
Constructor Details
-
ProcessVersionInfo
public ProcessVersionInfo()
-
-
Method Details
-
getHighestVersion
public long getHighestVersion()Gets the highest version of a process. This is the highest version we've ever known. There is no guarantee that a process with this version still exists in the state. It could've been deleted. We need to track this version so we don't ever reuse version numbers after a process has been deleted.- Returns:
- the highest version we've ever known for this process
-
setHighestVersionIfHigher
Sets the highest version of a process. This is the highest version we've ever known. If the passed version is lower than the current known highest version, nothing is changed.- Parameters:
version- the version of the process
-
getLatestVersion
-
getKnownVersions
-
findVersionBefore
-
addKnownVersion
public void addKnownVersion(long version) -
removeKnownVersion
public void removeKnownVersion(long version)
-