java.lang.Object
com.atlassian.greenhopper.service.lexorank.repair.LockStore

@NotThreadSafe public class LockStore extends Object
This class is responsible for managing locks on LexoRank rows during local Lexorank repair. This class is a utility class of the RepairProcess and is not thread-safe on Java level.
  • Constructor Details

    • LockStore

      public LockStore(LexoRankDao lexoRankDao)
  • Method Details

    • get

      public Lock get(Long issueId)
      Returns the lock for the given issueId, if it exists.
      Parameters:
      issueId - the issueId to get the lock for
      Returns:
      the lock for the given issueId, or null if no lock exists
    • releaseAllLocks

      public void releaseAllLocks()
      Releases all currently held locks. The order in which locks are released is not guaranteed.
    • releaseLock

      public void releaseLock(Long issueId)
      Releases the lock for the given issueId.
      Parameters:
      issueId - the issueId to release the lock for