Class ProcessVersionManager

java.lang.Object
io.camunda.zeebe.engine.state.deployment.ProcessVersionManager

public final class ProcessVersionManager extends Object
  • Constructor Details

  • Method Details

    • addProcessVersion

      public void addProcessVersion(String processId, long value)
    • deleteProcessVersion

      public void deleteProcessVersion(String processId, long version)
      Deletes a specified version of a process
      Parameters:
      processId - the id of the process
      version - the version that needs to be deleted
    • clear

      public void clear()
    • getLatestProcessVersion

      public long getLatestProcessVersion(String 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
    • 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

      public long getHighestProcessVersion(String processId)
      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

      public Optional<Integer> findProcessVersionBefore(String processId, long version)