public class ExecutorServiceManagerImpl extends Object implements ExecutorServiceManager, org.picocontainer.Startable
| 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.
|
void |
start() |
void |
stop() |
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 ExecutorServiceManagerpublic void start()
start in interface org.picocontainer.Startablepublic void stop()
stop in interface org.picocontainer.StartableCopyright © 2003–2021 eXo Platform SAS. All rights reserved.