public class JediThreadPoolExecutor extends ThreadPoolExecutor
| 限定符和类型 | 类和说明 |
|---|---|
static class |
JediThreadPoolExecutor.JediCallerRunsPolicy
A handler for rejected tasks that runs the rejected task
directly in the calling thread of the
execute method,
unless the executor has been shut down, in which case the task
is discarded. |
ThreadPoolExecutor.AbortPolicy, ThreadPoolExecutor.CallerRunsPolicy, ThreadPoolExecutor.DiscardOldestPolicy, ThreadPoolExecutor.DiscardPolicy| 构造器和说明 |
|---|
JediThreadPoolExecutor(int corePoolSize,
int maximumPoolSize,
long keepAliveTime,
TimeUnit unit,
BlockingQueue<Runnable> workQueue,
RejectedExecutionHandler handler,
String poolName,
AbstractNotificationService notificationService) |
JediThreadPoolExecutor(int corePoolSize,
int maximumPoolSize,
long keepAliveTime,
TimeUnit unit,
BlockingQueue<Runnable> workQueue,
String poolName,
AbstractNotificationService notificationService) |
JediThreadPoolExecutor(int corePoolSize,
int maximumPoolSize,
long keepAliveTime,
TimeUnit unit,
BlockingQueue<Runnable> workQueue,
ThreadFactory threadFactory,
RejectedExecutionHandler handler,
String poolName,
AbstractNotificationService notificationService) |
JediThreadPoolExecutor(int corePoolSize,
int maximumPoolSize,
long keepAliveTime,
TimeUnit unit,
BlockingQueue<Runnable> workQueue,
ThreadFactory threadFactory,
String poolName,
AbstractNotificationService notificationService) |
JediThreadPoolExecutor(JediThreadPoolProperty jediThreadPoolProperty) |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
execute(Runnable command) |
long |
getLastRejectCount() |
AbstractNotificationService |
getNotificationService() |
String |
getPoolName() |
long |
getRejectCount() |
int |
getTickerCycle() |
boolean |
isToStop() |
void |
setLastRejectCount(long lastRejectCount) |
void |
setTickerCycle(int tickerCycle) |
void |
setToStop(boolean toStop) |
void |
shutdown() |
List<Runnable> |
shutdownNow() |
allowCoreThreadTimeOut, allowsCoreThreadTimeOut, awaitTermination, getActiveCount, getCompletedTaskCount, getCorePoolSize, getKeepAliveTime, getLargestPoolSize, getMaximumPoolSize, getPoolSize, getQueue, getRejectedExecutionHandler, getTaskCount, getThreadFactory, isShutdown, isTerminated, isTerminating, prestartAllCoreThreads, prestartCoreThread, purge, remove, setCorePoolSize, setKeepAliveTime, setMaximumPoolSize, setRejectedExecutionHandler, setThreadFactory, toStringpublic JediThreadPoolExecutor(int corePoolSize,
int maximumPoolSize,
long keepAliveTime,
TimeUnit unit,
BlockingQueue<Runnable> workQueue,
String poolName,
AbstractNotificationService notificationService)
public JediThreadPoolExecutor(int corePoolSize,
int maximumPoolSize,
long keepAliveTime,
TimeUnit unit,
BlockingQueue<Runnable> workQueue,
ThreadFactory threadFactory,
String poolName,
AbstractNotificationService notificationService)
public JediThreadPoolExecutor(int corePoolSize,
int maximumPoolSize,
long keepAliveTime,
TimeUnit unit,
BlockingQueue<Runnable> workQueue,
RejectedExecutionHandler handler,
String poolName,
AbstractNotificationService notificationService)
public JediThreadPoolExecutor(int corePoolSize,
int maximumPoolSize,
long keepAliveTime,
TimeUnit unit,
BlockingQueue<Runnable> workQueue,
ThreadFactory threadFactory,
RejectedExecutionHandler handler,
String poolName,
AbstractNotificationService notificationService)
public JediThreadPoolExecutor(JediThreadPoolProperty jediThreadPoolProperty) throws ClassNotFoundException, IllegalAccessException, InstantiationException
public void shutdown()
shutdown 在接口中 ExecutorServiceshutdown 在类中 ThreadPoolExecutorpublic List<Runnable> shutdownNow()
shutdownNow 在接口中 ExecutorServiceshutdownNow 在类中 ThreadPoolExecutorpublic void execute(Runnable command)
execute 在接口中 Executorexecute 在类中 ThreadPoolExecutorpublic boolean isToStop()
public void setToStop(boolean toStop)
public int getTickerCycle()
public void setTickerCycle(int tickerCycle)
public String getPoolName()
public long getRejectCount()
public AbstractNotificationService getNotificationService()
public long getLastRejectCount()
public void setLastRejectCount(long lastRejectCount)
Copyright © 2022 hellothomas. All rights reserved.