net.sf.seide.thread
Interface JMXEnabledThreadPoolExecutor

All Known Subinterfaces:
JMXConfigurableThreadPoolExecutor
All Known Implementing Classes:
DispatcherThreadPoolExecutor

@MXBean
public interface JMXEnabledThreadPoolExecutor

Interface to expose the internal TPE values on JMX.
Nice idea took from Apache Cassandra's internal code.

Author:
german.kondolf
See Also:
MXBean}, ThreadPoolExecutor}

Method Summary
 int getActiveCount()
          Get the current number of running tasks
 long getCompletedTasks()
          Get the number of completed tasks
 long getPendingTasks()
          Get the number of tasks waiting to be executed
 

Method Detail

getActiveCount

int getActiveCount()
Get the current number of running tasks


getCompletedTasks

long getCompletedTasks()
Get the number of completed tasks


getPendingTasks

long getPendingTasks()
Get the number of tasks waiting to be executed



Copyright © 2011. All Rights Reserved.