public class OrderlyExecutor
extends java.util.concurrent.ThreadPoolExecutor
| 构造器和说明 |
|---|
OrderlyExecutor(boolean isOrderly,
int corePoolSize,
int maximumPoolSize,
long keepAliveTime,
java.util.concurrent.TimeUnit unit,
java.util.concurrent.BlockingQueue<java.lang.Runnable> workQueue,
java.util.concurrent.ThreadFactory threadFactory,
java.util.concurrent.RejectedExecutionHandler handler)
Instantiates a new Orderly executor.
|
| 限定符和类型 | 方法和说明 |
|---|---|
SingletonExecutor |
select(java.lang.String hash)
Select.
|
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, toStringpublic OrderlyExecutor(boolean isOrderly,
int corePoolSize,
int maximumPoolSize,
long keepAliveTime,
java.util.concurrent.TimeUnit unit,
java.util.concurrent.BlockingQueue<java.lang.Runnable> workQueue,
java.util.concurrent.ThreadFactory threadFactory,
java.util.concurrent.RejectedExecutionHandler handler)
corePoolSize - the core pool sizemaximumPoolSize - the maximum pool sizekeepAliveTime - the keep alive timeunit - the unitworkQueue - the work queuethreadFactory - the thread factoryhandler - the handlerisOrderly - the orderly Whether to execute sequentially.public SingletonExecutor select(java.lang.String hash)
hash - the hash codeCopyright © 2026 The Apache Software Foundation. All rights reserved.