Interface ExecutorServiceManager
- All Known Implementing Classes:
ExecutorServiceManagerImpl
public interface ExecutorServiceManager
-
Method Summary
Modifier and TypeMethodDescriptionGets the thread name patter to usenewDefaultThreadPool(String name) Creates a new thread pool using the default thread pool profile.Creates a new daemon thread with the given name.newThreadPool(String name, ThreadPoolConfig config) voidsetThreadNamePattern(String pattern) Sets the thread name pattern used for creating the full thread name.
-
Method Details
-
setThreadNamePattern
Sets the thread name pattern used for creating the full thread name.- Parameters:
pattern- the pattern- Throws:
IllegalArgumentException- if the pattern is invalid.
-
getThreadNamePattern
String getThreadNamePattern()Gets the thread name patter to use- Returns:
- the pattern
-
newThread
Creates a new daemon thread with the given name.- Parameters:
name- name which is appended to the thread namerunnable- a runnable to be executed by new thread instance- Returns:
- the created thread
-
newDefaultThreadPool
Creates a new thread pool using the default thread pool profile.- Parameters:
name- name which is appended to the thread name- Returns:
- the created thread pool
-
getThreadPoolConfig
-
newThreadPool
-