Package org.jboss.util.threadpool
Interface ThreadPoolMBean
-
- All Known Subinterfaces:
BasicThreadPoolMBean
- All Known Implementing Classes:
BasicThreadPool
public interface ThreadPoolMBean
Management interface for the thread pool.- Version:
- $Revision$
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ThreadPool
getInstance()
int
getMaximumPoolSize()
Get the maximum pool sizeint
getMinimumPoolSize()
Get the minimum pool sizejava.lang.String
getName()
Get the thread pool nameint
getPoolNumber()
Get the internal pool numberint
getPoolSize()
Get the current pool sizevoid
setMaximumPoolSize(int size)
Set the maximum pool sizevoid
setMinimumPoolSize(int size)
Set the minimum pool sizevoid
setName(java.lang.String name)
Set the thread pool namevoid
stop()
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
-
-