Class ProcessVersionManager
java.lang.Object
io.camunda.zeebe.engine.state.deployment.ProcessVersionManager
-
Constructor Summary
ConstructorsConstructorDescriptionProcessVersionManager(long initialValue, ZeebeDb<ZbColumnFamilies> zeebeDb, TransactionContext transactionContext) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddProcessVersion(String processId, long value) voidclear()voiddeleteProcessVersion(String processId, long version) Deletes a specified version of a processfindProcessVersionBefore(String processId, long version) longgetHighestProcessVersion(String processId) Returns the highest version ever deployed for a given process.longgetHighestProcessVersion(org.agrona.DirectBuffer processId) Returns the highest process id ever deployed for a given process.longgetLatestProcessVersion(String processId) Returns the latest known version of a process.longgetLatestProcessVersion(org.agrona.DirectBuffer processId) Returns the latest known version of a process.
-
Constructor Details
-
ProcessVersionManager
public ProcessVersionManager(long initialValue, ZeebeDb<ZbColumnFamilies> zeebeDb, TransactionContext transactionContext)
-
-
Method Details
-
addProcessVersion
-
deleteProcessVersion
Deletes a specified version of a process- Parameters:
processId- the id of the processversion- the version that needs to be deleted
-
clear
public void clear() -
getLatestProcessVersion
Returns the latest known version of a process. A process with this version exists in the state.- Parameters:
processId- the process id- Returns:
- the latest known version of this process
-
getLatestProcessVersion
public long getLatestProcessVersion(org.agrona.DirectBuffer processId) Returns the latest known version of a process. A process with this version exists in the state.- Parameters:
processId- the process id- Returns:
- the latest known version of this process
-
getHighestProcessVersion
Returns the highest version ever deployed for a given process. This process could already be deleted from the state.- Parameters:
processId- the process id- Returns:
- the highest version ever deployed for this process id.
-
getHighestProcessVersion
public long getHighestProcessVersion(org.agrona.DirectBuffer processId) Returns the highest process id ever deployed for a given process. This process could already be deleted from the state.- Parameters:
processId- the process id- Returns:
- the highest version ever deployed for this process id.
-
findProcessVersionBefore
-