use of com.gitblit.utils.IdGenerator 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;
}
Aggregations