public static class MethodsConfig.MethodsConfigBuilder extends Object
Modifier and Type | Method and Description |
---|---|
MethodsConfig |
build() |
MethodsConfig.MethodsConfigBuilder |
customThreadPoolSizes(Map<String,Integer> customThreadPoolSizes)
Team ID -> thread pool size
|
MethodsConfig.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() |
public MethodsConfig.MethodsConfigBuilder statsEnabled(boolean statsEnabled)
public MethodsConfig.MethodsConfigBuilder executorName(String executorName)
public MethodsConfig.MethodsConfigBuilder maxIdleMills(int maxIdleMills)
public MethodsConfig.MethodsConfigBuilder defaultThreadPoolSize(int defaultThreadPoolSize)
public MethodsConfig.MethodsConfigBuilder customThreadPoolSizes(Map<String,Integer> customThreadPoolSizes)
public MethodsConfig.MethodsConfigBuilder metricsDatastore(MetricsDatastore metricsDatastore)
public MethodsConfig build()
Copyright © 2020. All rights reserved.