Package com.slack.api.util.thread
Class DaemonThreadExecutorServiceProvider
java.lang.Object
com.slack.api.util.thread.DaemonThreadExecutorServiceProvider
- All Implemented Interfaces:
ExecutorServiceProvider
-
Constructor Summary
Constructors -
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, waitMethods inherited from interface com.slack.api.util.thread.ExecutorServiceProvider
getInstanceId
-
Constructor Details
-
DaemonThreadExecutorServiceProvider
public DaemonThreadExecutorServiceProvider()
-
-
Method Details
-
getInstance
-
createThreadPoolExecutor
Description copied from interface:ExecutorServiceProviderCreates a new ExecutorService instance.- Specified by:
createThreadPoolExecutorin interfaceExecutorServiceProvider- Parameters:
threadGroupName- the thread group namepoolSize- the thread pool size- Returns:
- a new ExecutorService
-
createThreadScheduledExecutor
Description copied from interface:ExecutorServiceProviderCreates a new ScheduledExecutorService instance.- Specified by:
createThreadScheduledExecutorin interfaceExecutorServiceProvider- Parameters:
threadGroupName- the thread group name- Returns:
- a new ScheduledExecutorService
-