Package com.slack.api.util.thread
Class DaemonThreadExecutorServiceProvider
- java.lang.Object
-
- com.slack.api.util.thread.DaemonThreadExecutorServiceProvider
-
- All Implemented Interfaces:
ExecutorServiceProvider
public class DaemonThreadExecutorServiceProvider extends Object implements ExecutorServiceProvider
-
-
Constructor Summary
Constructors Constructor Description DaemonThreadExecutorServiceProvider()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description ExecutorServicecreateThreadPoolExecutor(String threadGroupName, int poolSize)Creates a new ExecutorService instance.ScheduledExecutorServicecreateThreadScheduledExecutor(String threadGroupName)Creates a new ScheduledExecutorService instance.static DaemonThreadExecutorServiceProvidergetInstance()-
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
-
-
-
-
Method Detail
-
getInstance
public static DaemonThreadExecutorServiceProvider getInstance()
-
createThreadPoolExecutor
public ExecutorService createThreadPoolExecutor(String threadGroupName, int poolSize)
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
public ScheduledExecutorService createThreadScheduledExecutor(String threadGroupName)
Description copied from interface:ExecutorServiceProviderCreates a new ScheduledExecutorService instance.- Specified by:
createThreadScheduledExecutorin interfaceExecutorServiceProvider- Parameters:
threadGroupName- the thread group name- Returns:
- a new ScheduledExecutorService
-
-