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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description MethodsConfigbuild()MethodsConfig.MethodsConfigBuildercustomThreadPoolSizes(Map<String,Integer> customThreadPoolSizes)Team ID -> thread pool sizeMethodsConfig.MethodsConfigBuilderdefaultThreadPoolSize(int defaultThreadPoolSize)The default thread pool size used for asynchronous API method calls.MethodsConfig.MethodsConfigBuilderexecutorName(String executorName)If you need to have multiple executors in the same Slack app, name this accordingly.MethodsConfig.MethodsConfigBuildermaxIdleMills(int maxIdleMills)The max period to keep asynchronous API method calls idle.MethodsConfig.MethodsConfigBuildermetricsDatastore(MetricsDatastore metricsDatastore)The metrics datastore to track the traffic associated to this executor name.MethodsConfig.MethodsConfigBuilderstatsEnabled(boolean statsEnabled)StringtoString()
-
-
-
Method Detail
-
statsEnabled
public MethodsConfig.MethodsConfigBuilder statsEnabled(boolean statsEnabled)
-
executorName
public MethodsConfig.MethodsConfigBuilder executorName(String executorName)
If you need to have multiple executors in the same Slack app, name this accordingly.- Returns:
this.
-
maxIdleMills
public MethodsConfig.MethodsConfigBuilder maxIdleMills(int maxIdleMills)
The max period to keep asynchronous API method calls idle.- Returns:
this.
-
defaultThreadPoolSize
public MethodsConfig.MethodsConfigBuilder defaultThreadPoolSize(int 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
public MethodsConfig.MethodsConfigBuilder metricsDatastore(MetricsDatastore metricsDatastore)
The metrics datastore to track the traffic associated to this executor name.- Returns:
this.
-
build
public MethodsConfig build()
-
-