package com.atlassian.stash.internal.concurrent;

import com.atlassian.bitbucket.concurrent.BucketedExecutorSettings;

import javax.annotation.Nonnull;
import java.io.Serializable;

/**
 * @since 3.3
 */
public interface BucketedExecutorFactory {

    @Nonnull
    <T extends Serializable> InternalBucketedExecutor<T> create(@Nonnull String name,
                                                                @Nonnull BucketedExecutorSettings<T> settings);
}
