Package com.slack.api.util.thread
Interface ExecutorServiceProvider
-
- All Known Implementing Classes:
DaemonThreadExecutorServiceProvider
public interface ExecutorServiceProviderProvides ExecutorServices for asynchronous code executions
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ExecutorServicecreateThreadPoolExecutor(String threadGroupName, int poolSize)Creates a new ExecutorService instance.ScheduledExecutorServicecreateThreadScheduledExecutor(String threadGroupName)Creates a new ScheduledExecutorService instance.
-
-
-
Method Detail
-
createThreadPoolExecutor
ExecutorService createThreadPoolExecutor(String threadGroupName, int poolSize)
Creates a new ExecutorService instance.- Parameters:
threadGroupName- the thread group namepoolSize- the thread pool size- Returns:
- a new ExecutorService
-
createThreadScheduledExecutor
ScheduledExecutorService createThreadScheduledExecutor(String threadGroupName)
Creates a new ScheduledExecutorService instance.- Parameters:
threadGroupName- the thread group name- Returns:
- a new ScheduledExecutorService
-
-