jjdh.opengl.scheduling
Class PausableScheduledThreadPoolExecutor
java.lang.Object
java.util.concurrent.AbstractExecutorService
java.util.concurrent.ThreadPoolExecutor
java.util.concurrent.ScheduledThreadPoolExecutor
jjdh.opengl.scheduling.PausableScheduledThreadPoolExecutor
- All Implemented Interfaces:
- Executor, ExecutorService, ScheduledExecutorService
public class PausableScheduledThreadPoolExecutor
- extends ScheduledThreadPoolExecutor
Methods inherited from class java.util.concurrent.ScheduledThreadPoolExecutor |
decorateTask, decorateTask, execute, getContinueExistingPeriodicTasksAfterShutdownPolicy, getExecuteExistingDelayedTasksAfterShutdownPolicy, getQueue, remove, schedule, schedule, scheduleAtFixedRate, scheduleWithFixedDelay, setContinueExistingPeriodicTasksAfterShutdownPolicy, setExecuteExistingDelayedTasksAfterShutdownPolicy, shutdown, shutdownNow, submit, submit, submit |
Methods inherited from class java.util.concurrent.ThreadPoolExecutor |
afterExecute, allowCoreThreadTimeOut, allowsCoreThreadTimeOut, awaitTermination, finalize, getActiveCount, getCompletedTaskCount, getCorePoolSize, getKeepAliveTime, getLargestPoolSize, getMaximumPoolSize, getPoolSize, getRejectedExecutionHandler, getTaskCount, getThreadFactory, isShutdown, isTerminated, isTerminating, prestartAllCoreThreads, prestartCoreThread, purge, setCorePoolSize, setKeepAliveTime, setMaximumPoolSize, setRejectedExecutionHandler, setThreadFactory, terminated |
isPaused
private boolean isPaused
pauseLock
private ReentrantLock pauseLock
unPaused
private Condition unPaused
PausableScheduledThreadPoolExecutor
public PausableScheduledThreadPoolExecutor(int corePoolSize)
PausableScheduledThreadPoolExecutor
public PausableScheduledThreadPoolExecutor(int corePoolSize,
ThreadFactory threadFactory)
PausableScheduledThreadPoolExecutor
public PausableScheduledThreadPoolExecutor(int corePoolSize,
RejectedExecutionHandler handler)
PausableScheduledThreadPoolExecutor
public PausableScheduledThreadPoolExecutor(int corePoolSize,
ThreadFactory threadFactory,
RejectedExecutionHandler handler)
initThis
private void initThis()
beforeExecute
protected void beforeExecute(Thread t,
Runnable r)
- Overrides:
beforeExecute
in class ThreadPoolExecutor
pause
public void pause()
resume
public void resume()
Copyright © 2006 Jonas Jacobi and Dennis Heidsiek. All Rights Reserved.