Package kilim
Class AffineScheduler.Executor
- java.lang.Object
-
- java.util.concurrent.AbstractExecutorService
-
- java.util.concurrent.ThreadPoolExecutor
-
- kilim.AffineScheduler.Executor
-
- All Implemented Interfaces:
java.util.concurrent.Executor,java.util.concurrent.ExecutorService,TimerService.WatchdogContext
- Enclosing class:
- AffineScheduler
protected class AffineScheduler.Executor extends java.util.concurrent.ThreadPoolExecutor implements TimerService.WatchdogContext
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class java.util.concurrent.ThreadPoolExecutor
java.util.concurrent.ThreadPoolExecutor.AbortPolicy, java.util.concurrent.ThreadPoolExecutor.CallerRunsPolicy, java.util.concurrent.ThreadPoolExecutor.DiscardOldestPolicy, java.util.concurrent.ThreadPoolExecutor.DiscardPolicy
-
-
Constructor Summary
Constructors Constructor Description Executor(java.util.concurrent.LinkedBlockingQueue que)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidafterExecute(java.lang.Runnable r, java.lang.Throwable t)booleanisEmpty()booleanisEmptyish()protected voidpublish(Task task)voidpublish(TimerService.WatchdogTask dog)-
Methods inherited from class java.util.concurrent.ThreadPoolExecutor
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, toString
-
-
-
-
Field Detail
-
que
protected java.util.concurrent.LinkedBlockingQueue<Task> que
-
pending
protected java.util.concurrent.atomic.AtomicInteger pending
-
-
Method Detail
-
publish
protected void publish(Task task)
-
afterExecute
protected void afterExecute(java.lang.Runnable r, java.lang.Throwable t)- Overrides:
afterExecutein classjava.util.concurrent.ThreadPoolExecutor
-
isEmpty
public boolean isEmpty()
- Specified by:
isEmptyin interfaceTimerService.WatchdogContext
-
isEmptyish
public boolean isEmptyish()
- Specified by:
isEmptyishin interfaceTimerService.WatchdogContext
-
publish
public void publish(TimerService.WatchdogTask dog)
- Specified by:
publishin interfaceTimerService.WatchdogContext
-
-