|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.exoplatform.social.common.service.impl.ExecutorServiceManagerImpl
public class ExecutorServiceManagerImpl
| Constructor Summary | |
|---|---|
ExecutorServiceManagerImpl()
|
|
| 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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ExecutorServiceManagerImpl()
| Method Detail |
|---|
public void setThreadNamePattern(String pattern)
throws IllegalArgumentException
ExecutorServiceManager
setThreadNamePattern in interface ExecutorServiceManagerpattern - the pattern
IllegalArgumentException - if the pattern is invalid.public String getThreadNamePattern()
ExecutorServiceManager
getThreadNamePattern in interface ExecutorServiceManager
public Thread newThread(String name,
Runnable runnable)
ExecutorServiceManager
newThread in interface ExecutorServiceManagername - name which is appended to the thread namerunnable - a runnable to be executed by new thread instance
public ExecutorService newDefaultThreadPool(String name)
ExecutorServiceManager
newDefaultThreadPool in interface ExecutorServiceManagername - name which is appended to the thread name
public ThreadPoolConfig getThreadPoolConfig(String id)
getThreadPoolConfig in interface ExecutorServiceManager
public ExecutorService newThreadPool(String name,
ThreadPoolConfig config)
newThreadPool in interface ExecutorServiceManager
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||