Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ class AJXTaskManager {
String sourceCompatibility
String targetCompatibility

BatchTaskScheduler batchTaskScheduler = new BatchTaskScheduler()
BatchTaskScheduler batchTaskScheduler = new BatchTaskScheduler(1)

AJXTaskManager() {
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,10 @@ class BatchTaskScheduler {
executorService = Executors.newScheduledThreadPool(Runtime.runtime.availableProcessors() + 1)
}

BatchTaskScheduler(int count) {
executorService = Executors.newScheduledThreadPool(count)
}

public <T extends ITask> void addTask(T task) {
tasks << task
}
Expand Down