|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ExecutorServiceManager
| Method Summary | |
|---|---|
String |
getThreadNamePattern()
Gets the thread name patter to use |
ThreadPoolConfig |
getThreadPoolConfig(String id)
|
ExecutorService |
newDefaultThreadPool(String name)
Creates a new thread pool using the default thread pool profile. |
Thread |
newThread(String name,
Runnable runnable)
Creates a new daemon thread with the given name. |
ExecutorService |
newThreadPool(String name,
ThreadPoolConfig config)
|
void |
setThreadNamePattern(String pattern)
Sets the thread name pattern used for creating the full thread name. |
| Method Detail |
|---|
void setThreadNamePattern(String pattern)
throws IllegalArgumentException
pattern - the pattern
IllegalArgumentException - if the pattern is invalid.String getThreadNamePattern()
Thread newThread(String name,
Runnable runnable)
name - name which is appended to the thread namerunnable - a runnable to be executed by new thread instance
ExecutorService newDefaultThreadPool(String name)
source - the source object, usually it should be this passed in as parametername - name which is appended to the thread name
ThreadPoolConfig getThreadPoolConfig(String id)
ExecutorService newThreadPool(String name,
ThreadPoolConfig config)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||