public class JediThreadPoolExecutor extends ThreadPoolExecutor
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) |
AbstractNotificationService |
getNotificationService() |
String |
getPoolName() |
long |
getRejectCount() |
int |
getTickerCycle() |
boolean |
isToStop() |
void |
setNotificationService(AbstractNotificationService notificationService) |
void |
setTickerCycle(int tickerCycle) |
void |
setToStop(boolean toStop) |
void |
shutdown() |
List<Runnable> |
shutdownNow() |
<T> Future<T> |
submit(Callable<T> task) |
Future<?> |
submit(Runnable task) |
<T> Future<T> |
submit(Runnable task,
T result) |
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, toStringinvokeAll, invokeAll, invokeAny, invokeAnypublic 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 Future<?> submit(Runnable task)
submit 在接口中 ExecutorServicesubmit 在类中 AbstractExecutorServicepublic <T> Future<T> submit(Runnable task, T result)
submit 在接口中 ExecutorServicesubmit 在类中 AbstractExecutorServicepublic <T> Future<T> submit(Callable<T> task)
submit 在接口中 ExecutorServicesubmit 在类中 AbstractExecutorServicepublic 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 void setNotificationService(AbstractNotificationService notificationService)
Copyright © 2021 hellothomas. All rights reserved.