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