public interface

ConcurrencyService

com.atlassian.bitbucket.concurrent.ConcurrencyService

Summary

Public Methods
@Nonnull <T extends Serializable> BucketedExecutor<T> getBucketedExecutor(String name, BucketedExecutorSettings<T> settings)
Retrieves a BucketedExecutor by name, or creates a new one if it does not already exists.
@Nonnull <K extends Serializable> VersionTracker<K> getVersionTracker(String name)

Public Methods

@Nonnull public BucketedExecutor<T> getBucketedExecutor (String name, BucketedExecutorSettings<T> settings)

Retrieves a BucketedExecutor by name, or creates a new one if it does not already exists.

Parameters
name the executor name
settings configuration for the executor
Returns
  • the executor, or null if it hasn't been created yet.

@Nonnull public VersionTracker<K> getVersionTracker (String name)

Returns
  • a version tracker for the supplied name