Class LockStore
java.lang.Object
com.atlassian.greenhopper.service.lexorank.repair.LockStore
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the lock for the given issueId, if it exists.void
Releases all currently held locks.void
releaseLock
(Long issueId) Releases the lock for the given issueId.
-
Constructor Details
-
LockStore
-
-
Method Details
-
get
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
Releases the lock for the given issueId.- Parameters:
issueId
- the issueId to release the lock for
-