public class BonitaThreadPoolExecutor extends java.util.concurrent.ThreadPoolExecutor implements BonitaExecutorService
java.util.concurrent.ThreadPoolExecutor.AbortPolicy, java.util.concurrent.ThreadPoolExecutor.CallerRunsPolicy, java.util.concurrent.ThreadPoolExecutor.DiscardOldestPolicy, java.util.concurrent.ThreadPoolExecutor.DiscardPolicy| Constructor and Description |
|---|
BonitaThreadPoolExecutor(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,
WorkFactory workFactory,
TechnicalLoggerService logger,
EngineClock engineClock,
WorkExecutionCallback workExecutionCallback,
WorkExecutionAuditor workExecutionAuditor) |
| Modifier and Type | Method and Description |
|---|---|
void |
clearAllQueues()
clear the queue of work
|
long |
getExecuted() |
long |
getPendings() |
long |
getRunnings() |
void |
shutdownAndEmptyQueue()
shutdown and handle the queue properly
|
java.util.concurrent.Future<?> |
submit(java.lang.Runnable task) |
void |
submit(WorkDescriptor work)
Execute the work described by the work descriptor
|
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, toStringinvokeAll, invokeAll, invokeAny, invokeAny, newTaskFor, newTaskFor, submit, submitclone, equals, getClass, hashCode, notify, notifyAll, wait, wait, waitawaitTerminationpublic BonitaThreadPoolExecutor(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,
WorkFactory workFactory,
TechnicalLoggerService logger,
EngineClock engineClock,
WorkExecutionCallback workExecutionCallback,
WorkExecutionAuditor workExecutionAuditor)
public void clearAllQueues()
BonitaExecutorServiceclearAllQueues in interface BonitaExecutorServicepublic java.util.concurrent.Future<?> submit(java.lang.Runnable task)
submit in interface java.util.concurrent.ExecutorServicesubmit in class java.util.concurrent.AbstractExecutorServicepublic void shutdownAndEmptyQueue()
BonitaExecutorServiceshutdownAndEmptyQueue in interface BonitaExecutorServicepublic void submit(WorkDescriptor work)
BonitaExecutorServicesubmit in interface BonitaExecutorServicepublic long getPendings()
getPendings in interface ObservableExecutorpublic long getRunnings()
getRunnings in interface ObservableExecutorpublic long getExecuted()
getExecuted in interface ObservableExecutor