Interface ExecutorServices
-
- All Known Subinterfaces:
ExecutorServiceManager
,ExecutorServicesEx
- All Known Implementing Classes:
MockExecutorServices
,SimpleExecutorServices
,TeamCityExecutorServicesImpl
public interface ExecutorServices
Provides access to the server-side executor services. Each executor is intended for its own specific type of tasks. Currently there are two executors - the normal executor and the low priority executor.Normal executor should be used for submitting scheduled tasks and tasks that are critical for the TeamCity application, e.g. checking for changes, agent pinging, etc. Non-critical tasks or tasks that can be interrupted without serious consequences, such as background caching etc., should be submitted to the low priority executor.
- Author:
- Sergey.Anchipolevsky Date: 03.09.2010
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ExecutorService
getLowPriorityExecutorService()
ScheduledExecutorService
getNormalExecutorService()
-
-
-
Method Detail
-
getNormalExecutorService
@NotNull ScheduledExecutorService getNormalExecutorService()
- Returns:
- normal executor service; this executor is being used mostly for high priority/critical tasks.
If a task is not critical, consider using
getLowPriorityExecutorService()
instead.
-
getLowPriorityExecutorService
@NotNull ExecutorService getLowPriorityExecutorService()
- Returns:
- low priority executor service; this executor can be used for any background non-critical tasks.
-
-