Package com.slack.api.util.thread
Class DaemonThreadExecutorServiceProvider
java.lang.Object
com.slack.api.util.thread.DaemonThreadExecutorServiceProvider
- All Implemented Interfaces:
ExecutorServiceProvider
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioncreateThreadPoolExecutor
(String threadGroupName, int poolSize) Creates a new ExecutorService instance.createThreadScheduledExecutor
(String threadGroupName) Creates a new ScheduledExecutorService instance.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.slack.api.util.thread.ExecutorServiceProvider
getInstanceId
-
Constructor Details
-
DaemonThreadExecutorServiceProvider
public DaemonThreadExecutorServiceProvider()
-
-
Method Details
-
getInstance
-
createThreadPoolExecutor
Description copied from interface:ExecutorServiceProvider
Creates a new ExecutorService instance.- Specified by:
createThreadPoolExecutor
in interfaceExecutorServiceProvider
- Parameters:
threadGroupName
- the thread group namepoolSize
- the thread pool size- Returns:
- a new ExecutorService
-
createThreadScheduledExecutor
Description copied from interface:ExecutorServiceProvider
Creates a new ScheduledExecutorService instance.- Specified by:
createThreadScheduledExecutor
in interfaceExecutorServiceProvider
- Parameters:
threadGroupName
- the thread group name- Returns:
- a new ScheduledExecutorService
-