public class ExecutorServiceManagerImpl extends Object implements ExecutorServiceManager
| Constructor and Description |
|---|
ExecutorServiceManagerImpl() |
| Modifier and Type | Method and Description |
|---|---|
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.
|
public void setThreadNamePattern(String pattern) throws IllegalArgumentException
ExecutorServiceManagersetThreadNamePattern in interface ExecutorServiceManagerpattern - the patternIllegalArgumentException - if the pattern is invalid.public String getThreadNamePattern()
ExecutorServiceManagergetThreadNamePattern in interface ExecutorServiceManagerpublic Thread newThread(String name, Runnable runnable)
ExecutorServiceManagernewThread in interface ExecutorServiceManagername - name which is appended to the thread namerunnable - a runnable to be executed by new thread instancepublic ExecutorService newDefaultThreadPool(String name)
ExecutorServiceManagernewDefaultThreadPool in interface ExecutorServiceManagername - name which is appended to the thread namepublic ThreadPoolConfig getThreadPoolConfig(String id)
getThreadPoolConfig in interface ExecutorServiceManagerpublic ExecutorService newThreadPool(String name, ThreadPoolConfig config)
newThreadPool in interface ExecutorServiceManagerCopyright © 2003–2018 eXo Platform SAS. All rights reserved.