Class MockExecutorServices
- java.lang.Object
-
- jetbrains.buildServer.serverSide.impl.executors.MockExecutorServices
-
- All Implemented Interfaces:
ExecutorServices
public class MockExecutorServices extends Object implements ExecutorServices
- Since:
- 7.1
- Author:
- Maxim Podkolzine (maxim.podkolzine@jetbrains.com)
-
-
Constructor Summary
Constructors Constructor Description MockExecutorServices()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ExecutorService
getLowPriorityExecutorService()
ScheduledExecutorService
getNormalExecutorService()
-
-
-
Method Detail
-
getNormalExecutorService
@NotNull public ScheduledExecutorService getNormalExecutorService()
- Specified by:
getNormalExecutorService
in interfaceExecutorServices
- Returns:
- normal executor service; this executor is being used mostly for high priority/critical tasks.
If a task is not critical, consider using
ExecutorServices.getLowPriorityExecutorService()
instead.
-
getLowPriorityExecutorService
@NotNull public ExecutorService getLowPriorityExecutorService()
- Specified by:
getLowPriorityExecutorService
in interfaceExecutorServices
- Returns:
- low priority executor service; this executor can be used for any background non-critical tasks.
-
-