public interface ExecutorServiceManager
| 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 setThreadNamePattern(String pattern) throws IllegalArgumentException
pattern - the patternIllegalArgumentException - 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 instanceExecutorService newDefaultThreadPool(String name)
name - name which is appended to the thread nameThreadPoolConfig getThreadPoolConfig(String id)
ExecutorService newThreadPool(String name, ThreadPoolConfig config)
Copyright © 2003–2019 eXo Platform SAS. All rights reserved.