Package com.slack.api.methods
Class MethodsConfig.MethodsConfigBuilder
java.lang.Object
com.slack.api.methods.MethodsConfig.MethodsConfigBuilder
- Enclosing class:
- MethodsConfig
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
customThreadPoolSizes
(Map<String, Integer> customThreadPoolSizes) Team ID -> thread pool sizedefaultThreadPoolSize
(int defaultThreadPoolSize) The default thread pool size used for asynchronous API method calls.executorName
(String executorName) If you need to have multiple executors in the same Slack app, name this accordingly.executorServiceProvider
(ExecutorServiceProvider executorServiceProvider) maxIdleMills
(int maxIdleMills) The max period to keep asynchronous API method calls idle.metricsDatastore
(MetricsDatastore metricsDatastore) The metrics datastore to track the traffic associated to this executor name.statsEnabled
(boolean statsEnabled) toString()
-
Method Details
-
statsEnabled
- Returns:
this
.
-
executorName
If you need to have multiple executors in the same Slack app, name this accordingly.- Returns:
this
.
-
maxIdleMills
The max period to keep asynchronous API method calls idle.- Returns:
this
.
-
defaultThreadPoolSize
The default thread pool size used for asynchronous API method calls.- Returns:
this
.
-
executorServiceProvider
public MethodsConfig.MethodsConfigBuilder executorServiceProvider(ExecutorServiceProvider executorServiceProvider) - Returns:
this
.
-
customThreadPoolSizes
public MethodsConfig.MethodsConfigBuilder customThreadPoolSizes(Map<String, Integer> customThreadPoolSizes) Team ID -> thread pool size- Returns:
this
.
-
metricsDatastore
The metrics datastore to track the traffic associated to this executor name.- Returns:
this
.
-
build
-
toString
-