Package org.apache.druid.java.util.common.concurrent
package org.apache.druid.java.util.common.concurrent
-
ClassDescriptionAn
ExecutorServicewhere all tasks are automatically decorated before being submitted to a delegate executor service.Decorates tasks before they are submitted to an executor.AScheduledExecutorServicewhere all tasks are automatically decorated before being submitted to a delegate executor service.ADecoratedScheduledExecutorServicethat emits a scheduling delay metric each time a task runs.Creates an executor service that runs each task in the thread that invokesexecute/submit, as inThreadPoolExecutor.CallerRunsPolicyThis applies both to individually submitted tasks and to collections of tasks submitted viainvokeAllorinvokeAny.