Package org.jboss.util.threadpool
Interface ThreadPoolMBean
-
- All Known Subinterfaces:
BasicThreadPoolMBean
- All Known Implementing Classes:
BasicThreadPool
public interface ThreadPoolMBeanManagement interface for the thread pool.- Version:
- $Revision$
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ThreadPoolgetInstance()intgetMaximumPoolSize()Get the maximum pool sizeintgetMinimumPoolSize()Get the minimum pool sizejava.lang.StringgetName()Get the thread pool nameintgetPoolNumber()Get the internal pool numberintgetPoolSize()Get the current pool sizevoidsetMaximumPoolSize(int size)Set the maximum pool sizevoidsetMinimumPoolSize(int size)Set the minimum pool sizevoidsetName(java.lang.String name)Set the thread pool namevoidstop()Stop the thread pool
-
-
-
Method Detail
-
getName
java.lang.String getName()
Get the thread pool name- Returns:
- the thread pool name
-
setName
void setName(java.lang.String name)
Set the thread pool name- Parameters:
name- the name
-
getPoolNumber
int getPoolNumber()
Get the internal pool number- Returns:
- the internal pool number
-
getMinimumPoolSize
int getMinimumPoolSize()
Get the minimum pool size- Returns:
- the minimum pool size
-
setMinimumPoolSize
void setMinimumPoolSize(int size)
Set the minimum pool size- Parameters:
size- the minimum pool size
-
getMaximumPoolSize
int getMaximumPoolSize()
Get the maximum pool size- Returns:
- the maximum pool size
-
setMaximumPoolSize
void setMaximumPoolSize(int size)
Set the maximum pool size- Parameters:
size- the maximum pool size
-
getPoolSize
int getPoolSize()
Get the current pool size- Returns:
- the current pool size
-
getInstance
ThreadPool getInstance()
- Returns:
- the instance
-
stop
void stop()
Stop the thread pool
-
-