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 Detail

      • getLowPriorityExecutorService

        @NotNull
        ExecutorService getLowPriorityExecutorService()
        Returns:
        low priority executor service; this executor can be used for any background non-critical tasks.