Package org.jboss.threads.management
Interface ManageableThreadPoolExecutorService
- All Superinterfaces:
AutoCloseable,Executor,ExecutorService
- All Known Implementing Classes:
EnhancedQueueExecutor,ManagedThreadPoolExecutor
A thread pool for which an MBean can be obtained.
-
Method Summary
Modifier and TypeMethodDescriptionCreate or acquire an MXBean instance for this thread pool.Methods inherited from interface java.util.concurrent.ExecutorService
awaitTermination, close, invokeAll, invokeAll, invokeAny, invokeAny, isShutdown, isTerminated, shutdown, shutdownNow, submit, submit, submit
-
Method Details
-
getThreadPoolMXBean
Create or acquire an MXBean instance for this thread pool. Note that the thread pool itself will not do anything in particular to register (or unregister) the MXBean with a JMX server; that is the caller's responsibility.- Returns:
- the MXBean instance (must not be
null)
-