protected class AffineScheduler.Executor extends java.util.concurrent.ThreadPoolExecutor implements TimerService.WatchdogContext
java.util.concurrent.ThreadPoolExecutor.AbortPolicy, java.util.concurrent.ThreadPoolExecutor.CallerRunsPolicy, java.util.concurrent.ThreadPoolExecutor.DiscardOldestPolicy, java.util.concurrent.ThreadPoolExecutor.DiscardPolicy| Modifier and Type | Field and Description |
|---|---|
protected java.util.concurrent.atomic.AtomicInteger |
pending |
protected java.util.concurrent.LinkedBlockingQueue<Task> |
que |
| Constructor and Description |
|---|
Executor(java.util.concurrent.LinkedBlockingQueue que) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
afterExecute(java.lang.Runnable r,
java.lang.Throwable t) |
boolean |
isEmpty() |
boolean |
isEmptyish() |
protected void |
publish(Task task) |
void |
publish(TimerService.WatchdogTask dog) |
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, toStringprotected java.util.concurrent.LinkedBlockingQueue<Task> que
protected java.util.concurrent.atomic.AtomicInteger pending
protected void publish(Task task)
protected void afterExecute(java.lang.Runnable r,
java.lang.Throwable t)
afterExecute in class java.util.concurrent.ThreadPoolExecutorpublic boolean isEmpty()
isEmpty in interface TimerService.WatchdogContextpublic boolean isEmptyish()
isEmptyish in interface TimerService.WatchdogContextpublic void publish(TimerService.WatchdogTask dog)
publish in interface TimerService.WatchdogContext