Search in sources :

Example 1 with WorkQueue

use of com.gitblit.utils.WorkQueue in project gitblit by gitblit.

the class WorkQueueProvider method get.

@Override
public synchronized WorkQueue get() {
    if (workQueue != null) {
        return workQueue;
    }
    IStoredSettings settings = runtimeManager.getSettings();
    int defaultThreadPoolSize = settings.getInteger(Keys.execution.defaultThreadPoolSize, 1);
    IdGenerator idGenerator = new IdGenerator();
    workQueue = new WorkQueue(idGenerator, defaultThreadPoolSize);
    return workQueue;
}
Also used : IStoredSettings(com.gitblit.IStoredSettings) IdGenerator(com.gitblit.utils.IdGenerator) WorkQueue(com.gitblit.utils.WorkQueue)

Aggregations

IStoredSettings (com.gitblit.IStoredSettings)1 IdGenerator (com.gitblit.utils.IdGenerator)1 WorkQueue (com.gitblit.utils.WorkQueue)1