Interface LockService
public interface LockService
Provides various types of locks, all of which are safe to use in a cluster.
-
Method Summary
Modifier and TypeMethodDescriptionCreates or retrieves aLockby namegetPullRequestLock(String lockName) Creates or retrieves aPullRequestLockby namegetRepositoryLock(String lockName) Creates or retrieves aRepositoryLockby name
-
Method Details
-
getLock
Creates or retrieves aLockby name- Parameters:
lockName- the name of the lock- Returns:
- the lock
-
getPullRequestLock
Creates or retrieves aPullRequestLockby name- Parameters:
lockName- the name of the lock- Returns:
- the pull request lock
-
getRepositoryLock
Creates or retrieves aRepositoryLockby name- Parameters:
lockName- the name of the lock- Returns:
- the repository lock
-