Class DefaultScheduledExecutorService

java.lang.Object
org.ros.concurrent.DefaultScheduledExecutorService
All Implemented Interfaces:
Executor, ExecutorService, ScheduledExecutorService

public class DefaultScheduledExecutorService extends Object implements ScheduledExecutorService
This wraps a Executors.newCachedThreadPool() and a Executors.newScheduledThreadPool(int) to provide the functionality of both in a single ScheduledExecutorService. This is necessary since the ScheduledExecutorService uses an unbounded queue which makes it impossible to create an unlimited number of threads on demand (as explained in the ThreadPoolExecutor class javadoc.
Author:
damonkohler@google.com (Damon Kohler)