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 aLock
by namegetPullRequestLock
(String lockName) Creates or retrieves aPullRequestLock
by namegetRepositoryLock
(String lockName) Creates or retrieves aRepositoryLock
by name
-
Method Details
-
getLock
Creates or retrieves aLock
by name- Parameters:
lockName
- the name of the lock- Returns:
- the lock
-
getPullRequestLock
Creates or retrieves aPullRequestLock
by name- Parameters:
lockName
- the name of the lock- Returns:
- the pull request lock
-
getRepositoryLock
Creates or retrieves aRepositoryLock
by name- Parameters:
lockName
- the name of the lock- Returns:
- the repository lock
-