net.sf.seide.thread
Interface JMXConfigurableThreadPoolExecutor

All Superinterfaces:
JMXEnabledThreadPoolExecutor
All Known Implementing Classes:
DispatcherThreadPoolExecutor

@MXBean
public interface JMXConfigurableThreadPoolExecutor
extends JMXEnabledThreadPoolExecutor

Interface to allow control of the TPE over JMX.
Nice idea took from Apache Cassandra's internal code.

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

Method Summary
 int getCorePoolSize()
           
 void setCorePoolSize(int n)
          Sets the core pool size to the TPE.
 
Methods inherited from interface net.sf.seide.thread.JMXEnabledThreadPoolExecutor
getActiveCount, getCompletedTasks, getPendingTasks
 

Method Detail

setCorePoolSize

void setCorePoolSize(int n)
Sets the core pool size to the TPE.

Parameters:
n - number of core threads.

getCorePoolSize

int getCorePoolSize()
Returns:
current core pool size.


Copyright © 2011. All Rights Reserved.