NASA World Wind

gov.nasa.worldwind.util
Class BasicScheduledTaskService.ScheduledTaskExecutor

java.lang.Object
  extended by java.util.concurrent.AbstractExecutorService
      extended by java.util.concurrent.ThreadPoolExecutor
          extended by java.util.concurrent.ScheduledThreadPoolExecutor
              extended by gov.nasa.worldwind.util.BasicScheduledTaskService.ScheduledTaskExecutor
All Implemented Interfaces:
Executor, ExecutorService, ScheduledExecutorService
Enclosing class:
BasicScheduledTaskService

protected class BasicScheduledTaskService.ScheduledTaskExecutor
extends ScheduledThreadPoolExecutor

Custom executor to run tasks.


Nested Class Summary
 
Nested classes/interfaces inherited from class java.util.concurrent.ThreadPoolExecutor
ThreadPoolExecutor.AbortPolicy, ThreadPoolExecutor.CallerRunsPolicy, ThreadPoolExecutor.DiscardOldestPolicy, ThreadPoolExecutor.DiscardPolicy
 
Constructor Summary
protected BasicScheduledTaskService.ScheduledTaskExecutor(int poolSize)
           
 
Method Summary
protected  void afterExecute(Runnable runnable, Throwable throwable)
           
protected  void beforeExecute(Thread thread, Runnable runnable)
           
 
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
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
 
Methods inherited from class java.util.concurrent.AbstractExecutorService
invokeAll, invokeAll, invokeAny, invokeAny, newTaskFor, newTaskFor
 
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

BasicScheduledTaskService.ScheduledTaskExecutor

protected BasicScheduledTaskService.ScheduledTaskExecutor(int poolSize)
Method Detail

afterExecute

protected void afterExecute(Runnable runnable,
                            Throwable throwable)
Overrides:
afterExecute in class ThreadPoolExecutor

beforeExecute

protected void beforeExecute(Thread thread,
                             Runnable runnable)
Overrides:
beforeExecute in class ThreadPoolExecutor

NASA World Wind