Class ProcessVersionInfo

All Implemented Interfaces:
DbValue, Recyclable, BufferReader, BufferWriter

public final class ProcessVersionInfo extends UnpackedObject implements DbValue
  • 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

      public ProcessVersionInfo setHighestVersionIfHigher(long version)
      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

      public Long getLatestVersion()
    • getKnownVersions

      public List<Long> getKnownVersions()
    • findVersionBefore

      public Optional<Integer> findVersionBefore(long version)
    • addKnownVersion

      public void addKnownVersion(long version)
    • removeKnownVersion

      public void removeKnownVersion(long version)