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 java.lang.Object
-
Method Summary
Modifier and Type Method Description MethodsConfigbuild()MethodsConfig.MethodsConfigBuildercustomThreadPoolSizes(java.util.Map<java.lang.String,java.lang.Integer> customThreadPoolSizes)Team ID -> thread pool sizeMethodsConfig.MethodsConfigBuilderdefaultThreadPoolSize(int defaultThreadPoolSize)The default thread pool size used for asynchronous API method calls.MethodsConfig.MethodsConfigBuilderexecutorName(java.lang.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)java.lang.StringtoString()
-
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.
-
customThreadPoolSizes
public MethodsConfig.MethodsConfigBuilder customThreadPoolSizes(java.util.Map<java.lang.String,java.lang.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
public java.lang.String toString()- Overrides:
toStringin classjava.lang.Object
-