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.
@Deprecated @Nonnull <K extends Serializable> VersionTracker<K> getVersionTracker(String name)
This method is deprecated. in 4.10 for removal in 5.0. Please use TopicService and asynchronous messages instead to coordinate changes across the cluster.

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.

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

This method is deprecated.
in 4.10 for removal in 5.0. Please use TopicService and asynchronous messages instead to coordinate changes across the cluster.

Returns
  • a version tracker for the supplied name