Package com.slack.api.methods
Class MethodsConfig
java.lang.Object
com.slack.api.methods.MethodsConfig
Configuration for
MethodsClient.-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final MethodsConfigThe default configuration.static final StringIf you don't have a special reason, we recommend going with the singleton executor to track all the traffic your app generated towards the Slack Platform in one place (= in one metrics datastore). -
Constructor Summary
ConstructorsConstructorDescriptionMethodsConfig(boolean statsEnabled, String executorName, int maxIdleMills, int defaultThreadPoolSize, ExecutorServiceProvider executorServiceProvider, Map<String, Integer> customThreadPoolSizes, MetricsDatastore metricsDatastore) -
Method Summary
Modifier and TypeMethodDescriptionbuilder()protected booleanbooleanTeam ID -> thread pool sizeintThe default thread pool size used for asynchronous API method calls.If you need to have multiple executors in the same Slack app, name this accordingly.intThe max period to keep asynchronous API method calls idle.The metrics datastore to track the traffic associated to this executor name.inthashCode()booleanvoidsetCustomThreadPoolSizes(Map<String, Integer> customThreadPoolSizes) Team ID -> thread pool sizevoidsetDefaultThreadPoolSize(int defaultThreadPoolSize) The default thread pool size used for asynchronous API method calls.voidsetExecutorName(String executorName) If you need to have multiple executors in the same Slack app, name this accordingly.voidsetExecutorServiceProvider(ExecutorServiceProvider executorServiceProvider) voidsetMaxIdleMills(int maxIdleMills) The max period to keep asynchronous API method calls idle.voidsetMetricsDatastore(MetricsDatastore metricsDatastore) The metrics datastore to track the traffic associated to this executor name.voidsetStatsEnabled(boolean statsEnabled) toString()
-
Field Details
-
DEFAULT_SINGLETON_EXECUTOR_NAME
If you don't have a special reason, we recommend going with the singleton executor to track all the traffic your app generated towards the Slack Platform in one place (= in one metrics datastore).- See Also:
-
DEFAULT_SINGLETON
The default configuration. It's not allowed to modify this runtime for any reasons.
-
-
Constructor Details
-
MethodsConfig
public MethodsConfig() -
MethodsConfig
public MethodsConfig(boolean statsEnabled, String executorName, int maxIdleMills, int defaultThreadPoolSize, ExecutorServiceProvider executorServiceProvider, Map<String, Integer> customThreadPoolSizes, MetricsDatastore metricsDatastore)
-
-
Method Details
-
builder
-
isStatsEnabled
public boolean isStatsEnabled() -
getExecutorName
If you need to have multiple executors in the same Slack app, name this accordingly. -
getMaxIdleMills
public int getMaxIdleMills()The max period to keep asynchronous API method calls idle. -
getDefaultThreadPoolSize
public int getDefaultThreadPoolSize()The default thread pool size used for asynchronous API method calls. -
getExecutorServiceProvider
-
getCustomThreadPoolSizes
Team ID -> thread pool size -
getMetricsDatastore
The metrics datastore to track the traffic associated to this executor name. -
setStatsEnabled
public void setStatsEnabled(boolean statsEnabled) -
setExecutorName
If you need to have multiple executors in the same Slack app, name this accordingly. -
setMaxIdleMills
public void setMaxIdleMills(int maxIdleMills) The max period to keep asynchronous API method calls idle. -
setDefaultThreadPoolSize
public void setDefaultThreadPoolSize(int defaultThreadPoolSize) The default thread pool size used for asynchronous API method calls. -
setExecutorServiceProvider
-
setCustomThreadPoolSizes
Team ID -> thread pool size -
setMetricsDatastore
The metrics datastore to track the traffic associated to this executor name. -
equals
-
canEqual
-
hashCode
public int hashCode() -
toString
-