Class DiskUsageTaskExecutor.UpdateWorker
- java.lang.Object
-
- jetbrains.buildServer.serverSide.statistics.diskusage.DiskUsageTaskExecutor.UpdateWorker
-
- Enclosing class:
- DiskUsageTaskExecutor
public static class DiskUsageTaskExecutor.UpdateWorker extends Object
-
-
Constructor Summary
Constructors Constructor Description UpdateWorker(ExecutorService executorService, int maxScheduledTasks, TimeService timeService)
UpdateWorker(ExecutorService executorService, Supplier<Integer> maxScheduledTasksSupplier, TimeService timeService)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getScheduledTasksCount()
void
interruptAll()
boolean
isWorking()
boolean
schedule(Runnable task, int priority)
-
-
-
Constructor Detail
-
UpdateWorker
public UpdateWorker(@NotNull ExecutorService executorService, int maxScheduledTasks, TimeService timeService)
-
UpdateWorker
public UpdateWorker(@NotNull ExecutorService executorService, @NotNull Supplier<Integer> maxScheduledTasksSupplier, TimeService timeService)
-
-
Method Detail
-
interruptAll
public void interruptAll()
-
isWorking
public boolean isWorking()
-
getScheduledTasksCount
public int getScheduledTasksCount()
-
schedule
public boolean schedule(@NotNull Runnable task, int priority)
-
-