public class ThreadPool
extends java.lang.Object
Constructor and Description |
---|
ThreadPool(long fixedThreadCount) |
ThreadPool(long threadMinCount,
long threadMaxCount) |
Modifier and Type | Method and Description |
---|---|
void |
delete() |
protected void |
finalize() |
protected static long |
getCPtr(ThreadPool obj) |
boolean |
getReserveLastThread() |
long |
getThreadIdleTimeoutMs()
Returns the thread idle timeout value, in milliseconds.
|
long |
getThreadMaxCount()
Returns the maximum number of threads in the thread pool.
|
long |
getThreadMinCount()
Returns the minimum number of threads in the thread pool.
|
java.lang.String |
getThreadName()
Returns the thread name of the thread pool threads.
|
void |
setReserveLastThread(boolean reserveLastThread)
If this setting is true, clients will receive an error message right away, if all threads in the thread pool are busy.
|
void |
setThreadIdleTimeoutMs(long threadIdleTimeoutMs)
Sets the thread idle timeout value, in milliseconds.
|
void |
setThreadMaxCount(long threadMaxCount)
Sets the maximum number of threads in the thread pool.
|
void |
setThreadMinCount(long threadMinCount)
Sets the minimum number of threads in the thread pool.
|
void |
setThreadName(java.lang.String threadName)
Sets the thread name of the thread pool threads, as visible in a debugger.
|
public ThreadPool(long fixedThreadCount)
public ThreadPool(long threadMinCount, long threadMaxCount)
protected static long getCPtr(ThreadPool obj)
protected void finalize()
finalize
in class java.lang.Object
public void delete()
public void setThreadMinCount(long threadMinCount)
public long getThreadMinCount()
public void setThreadMaxCount(long threadMaxCount)
public long getThreadMaxCount()
public void setThreadIdleTimeoutMs(long threadIdleTimeoutMs)
public long getThreadIdleTimeoutMs()
public void setReserveLastThread(boolean reserveLastThread)
public boolean getReserveLastThread()
public void setThreadName(java.lang.String threadName)
public java.lang.String getThreadName()