net.spy.concurrent
Class TrackingScheduledExecutor
java.lang.Object
java.util.concurrent.AbstractExecutorService
java.util.concurrent.ThreadPoolExecutor
java.util.concurrent.ScheduledThreadPoolExecutor
net.spy.concurrent.TrackingScheduledExecutor
- All Implemented Interfaces:
- Executor, ExecutorService, ScheduledExecutorService
public class TrackingScheduledExecutor
- extends ScheduledThreadPoolExecutor
ScheduledExecutorServer that uses WorkerThreads to track what's beging
executed.
| 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 |
TrackingScheduledExecutor
public TrackingScheduledExecutor(int maxThreads,
RejectedExecutionHandler reject,
ThreadGroup tg,
String name)
- Get a TrackingScheduledExecutor.
- Parameters:
maxThreads - core pool sizereject - the rejected execution handlertg - the thread group in which the threads should be createdname - the name of of the threads
TrackingScheduledExecutor
public TrackingScheduledExecutor(int maxThreads,
ThreadGroup tg,
String name)
- Get a TrackingScheduledExecutor.
- Parameters:
maxThreads - core pool sizetg - the thread group in which the threads should be createdname - the name of of the threads
beforeExecute
protected void beforeExecute(Thread t,
Runnable r)
- Overrides:
beforeExecute in class ThreadPoolExecutor
afterExecute
protected void afterExecute(Runnable r,
Throwable t)
- Overrides:
afterExecute in class ThreadPoolExecutor
Copyright © 1995-2007 SPY Internetworking. All Rights Reserved.