Package com.illumon.iris.db.tables.utils
Class QueryThreadPoolExecutor
java.lang.Object
java.util.concurrent.AbstractExecutorService
java.util.concurrent.ThreadPoolExecutor
com.illumon.iris.db.tables.utils.QueryThreadPoolExecutor
- All Implemented Interfaces:
Executor
,ExecutorService
public class QueryThreadPoolExecutor extends ThreadPoolExecutor
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
QueryThreadPoolExecutor.QueryContext
static class
QueryThreadPoolExecutor.QueryTask<TYPE>
Nested classes/interfaces inherited from class java.util.concurrent.ThreadPoolExecutor
ThreadPoolExecutor.AbortPolicy, ThreadPoolExecutor.CallerRunsPolicy, ThreadPoolExecutor.DiscardOldestPolicy, ThreadPoolExecutor.DiscardPolicy
-
Constructor Summary
Constructors Constructor Description QueryThreadPoolExecutor(int poolSize)
-
Method Summary
Modifier and Type Method Description protected <T> RunnableFuture<T>
newTaskFor(Runnable runnable, T value)
protected <T> RunnableFuture<T>
newTaskFor(Callable<T> callable)
Methods inherited from class java.util.concurrent.ThreadPoolExecutor
afterExecute, allowCoreThreadTimeOut, allowsCoreThreadTimeOut, awaitTermination, beforeExecute, execute, finalize, getActiveCount, getCompletedTaskCount, getCorePoolSize, getKeepAliveTime, getLargestPoolSize, getMaximumPoolSize, getPoolSize, getQueue, getRejectedExecutionHandler, getTaskCount, getThreadFactory, isShutdown, isTerminated, isTerminating, prestartAllCoreThreads, prestartCoreThread, purge, remove, setCorePoolSize, setKeepAliveTime, setMaximumPoolSize, setRejectedExecutionHandler, setThreadFactory, shutdown, shutdownNow, terminated, toString
-
Constructor Details
-
QueryThreadPoolExecutor
public QueryThreadPoolExecutor(int poolSize)
-
-
Method Details
-
newTaskFor
- Overrides:
newTaskFor
in classAbstractExecutorService
-
newTaskFor
- Overrides:
newTaskFor
in classAbstractExecutorService
-