Determining how long a task sits in the ScheduledThreadPoolExecutor's BlockingQueue
<p>I'm using a <a href="http://docs.oracle.com/javase/7/docs/api/java/util/concurrent/ScheduledThreadPoolExecutor.html" rel="nofollow">ScheduledThreadPoolExecutor</a> and I suspect that there are at times too many outstanding requests for the number of threads available (yes...I probably need to tune the number of threads). More specifically I'd like to know how long tasks are sitting in the thread pool's BlockingQueue waiting for an available thread after the scheduled task has fired. Seems that I would need to have a hook into when the ScheduledThreadPoolExecutor adds the task to its internal queue (<code>ScheduledThreadPoolExecutor.super.queue.add(task)</code>) but looking at the JDK's API and code there doesn't seem to be an easy way.</p>

<p>Thoughts and/or suggestions?</p>
