|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.util.concurrent.AbstractExecutorService
java.util.concurrent.ThreadPoolExecutor
java.util.concurrent.ScheduledThreadPoolExecutor
net.spy.concurrent.TrackingScheduledExecutor
public class TrackingScheduledExecutor
ScheduledExecutorServer that uses WorkerThreads to track what's beging executed.
| 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 | |
|---|---|
TrackingScheduledExecutor(int maxThreads,
java.util.concurrent.RejectedExecutionHandler reject,
java.lang.ThreadGroup tg,
java.lang.String name)
Get a TrackingScheduledExecutor. |
|
TrackingScheduledExecutor(int maxThreads,
java.lang.ThreadGroup tg,
java.lang.String name)
Get a TrackingScheduledExecutor. |
|
| Method Summary | |
|---|---|
protected void |
afterExecute(java.lang.Runnable r,
java.lang.Throwable t)
|
protected void |
beforeExecute(java.lang.Thread t,
java.lang.Runnable r)
|
| Methods inherited from class java.util.concurrent.ScheduledThreadPoolExecutor |
|---|
execute, getContinueExistingPeriodicTasksAfterShutdownPolicy, getExecuteExistingDelayedTasksAfterShutdownPolicy, getQueue, remove, schedule, schedule, scheduleAtFixedRate, scheduleWithFixedDelay, setContinueExistingPeriodicTasksAfterShutdownPolicy, setExecuteExistingDelayedTasksAfterShutdownPolicy, shutdown, shutdownNow, submit, submit, submit |
| Methods inherited from class java.util.concurrent.ThreadPoolExecutor |
|---|
awaitTermination, finalize, getActiveCount, getCompletedTaskCount, getCorePoolSize, getKeepAliveTime, getLargestPoolSize, getMaximumPoolSize, getPoolSize, getRejectedExecutionHandler, getTaskCount, getThreadFactory, isShutdown, isTerminated, isTerminating, prestartAllCoreThreads, prestartCoreThread, purge, setCorePoolSize, setKeepAliveTime, setMaximumPoolSize, setRejectedExecutionHandler, setThreadFactory, terminated |
| Methods inherited from class java.util.concurrent.AbstractExecutorService |
|---|
invokeAll, invokeAll, invokeAny, invokeAny |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface java.util.concurrent.ExecutorService |
|---|
awaitTermination, invokeAll, invokeAll, invokeAny, invokeAny, isShutdown, isTerminated |
| Constructor Detail |
|---|
public TrackingScheduledExecutor(int maxThreads,
java.util.concurrent.RejectedExecutionHandler reject,
java.lang.ThreadGroup tg,
java.lang.String name)
maxThreads - core pool sizereject - the rejected execution handlertg - the thread group in which the threads should be createdname - the name of of the threads
public TrackingScheduledExecutor(int maxThreads,
java.lang.ThreadGroup tg,
java.lang.String name)
maxThreads - core pool sizetg - the thread group in which the threads should be createdname - the name of of the threads| Method Detail |
|---|
protected void beforeExecute(java.lang.Thread t,
java.lang.Runnable r)
beforeExecute in class java.util.concurrent.ThreadPoolExecutor
protected void afterExecute(java.lang.Runnable r,
java.lang.Throwable t)
afterExecute in class java.util.concurrent.ThreadPoolExecutor
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||