public class ThreadPool extends Object
| Constructor and Description |
|---|
ThreadPool() |
| Modifier and Type | Method and Description |
|---|---|
int |
getCurrentThreadCount()
Gets the current thread count.
|
int |
getCurrentThreadsBusy()
Gets the current threads busy.
|
int |
getMaxSpareThreads()
Gets the max spare threads.
|
int |
getMaxThreads()
Gets the max threads.
|
int |
getMinSpareThreads()
Gets the min spare threads.
|
String |
getName()
Gets the name.
|
void |
setCurrentThreadCount(int currentThreadCount)
Sets the current thread count.
|
void |
setCurrentThreadsBusy(int currentThreadsBusy)
Sets the current threads busy.
|
void |
setMaxSpareThreads(int maxSpareThreads)
Sets the max spare threads.
|
void |
setMaxThreads(int maxThreads)
Sets the max threads.
|
void |
setMinSpareThreads(int minSpareThreads)
Sets the min spare threads.
|
void |
setName(String name)
Sets the name.
|
public String getName()
public void setName(String name)
name - the new namepublic int getMaxThreads()
public void setMaxThreads(int maxThreads)
maxThreads - the new max threadspublic int getMinSpareThreads()
public void setMinSpareThreads(int minSpareThreads)
minSpareThreads - the new min spare threadspublic int getMaxSpareThreads()
public void setMaxSpareThreads(int maxSpareThreads)
maxSpareThreads - the new max spare threadspublic int getCurrentThreadCount()
public void setCurrentThreadCount(int currentThreadCount)
currentThreadCount - the new current thread countpublic int getCurrentThreadsBusy()
public void setCurrentThreadsBusy(int currentThreadsBusy)
currentThreadsBusy - the new current threads busyCopyright © 2009–2020 psi-probe. All rights reserved.