Interface LockService


public interface LockService
Provides various types of locks, all of which are safe to use in a cluster.
  • Method Details

    • getLock

      @Nonnull Lock getLock(@Nonnull String lockName)
      Creates or retrieves a Lock by name
      Parameters:
      lockName - the name of the lock
      Returns:
      the lock
    • getPullRequestLock

      @Nonnull PullRequestLock getPullRequestLock(@Nonnull String lockName)
      Creates or retrieves a PullRequestLock by name
      Parameters:
      lockName - the name of the lock
      Returns:
      the pull request lock
    • getRepositoryLock

      @Nonnull RepositoryLock getRepositoryLock(@Nonnull String lockName)
      Creates or retrieves a RepositoryLock by name
      Parameters:
      lockName - the name of the lock
      Returns:
      the repository lock