public class MethodsConfig extends Object
MethodsClient
.Modifier and Type | Class and Description |
---|---|
static class |
MethodsConfig.MethodsConfigBuilder |
Modifier and Type | Field and Description |
---|---|
static MethodsConfig |
DEFAULT_SINGLETON
The default configuration.
|
static String |
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).
|
Constructor and Description |
---|
MethodsConfig() |
MethodsConfig(boolean statsEnabled,
String executorName,
int maxIdleMills,
int defaultThreadPoolSize,
Map<String,Integer> customThreadPoolSizes,
MetricsDatastore metricsDatastore) |
Modifier and Type | Method and Description |
---|---|
static MethodsConfig.MethodsConfigBuilder |
builder() |
protected boolean |
canEqual(Object other) |
boolean |
equals(Object o) |
Map<String,Integer> |
getCustomThreadPoolSizes()
Team ID -> thread pool size
|
int |
getDefaultThreadPoolSize()
The default thread pool size used for asynchronous API method calls.
|
String |
getExecutorName()
If you need to have multiple executors in the same Slack app, name this accordingly.
|
int |
getMaxIdleMills()
The max period to keep asynchronous API method calls idle.
|
MetricsDatastore |
getMetricsDatastore()
The metrics datastore to track the traffic associated to this executor name.
|
int |
hashCode() |
boolean |
isStatsEnabled() |
void |
setCustomThreadPoolSizes(Map<String,Integer> customThreadPoolSizes)
Team ID -> thread pool size
|
void |
setDefaultThreadPoolSize(int defaultThreadPoolSize)
The default thread pool size used for asynchronous API method calls.
|
void |
setExecutorName(String executorName)
If you need to have multiple executors in the same Slack app, name this accordingly.
|
void |
setMaxIdleMills(int maxIdleMills)
The max period to keep asynchronous API method calls idle.
|
void |
setMetricsDatastore(MetricsDatastore metricsDatastore)
The metrics datastore to track the traffic associated to this executor name.
|
void |
setStatsEnabled(boolean statsEnabled) |
String |
toString() |
public static final String DEFAULT_SINGLETON_EXECUTOR_NAME
public static final MethodsConfig DEFAULT_SINGLETON
public MethodsConfig()
public MethodsConfig(boolean statsEnabled, String executorName, int maxIdleMills, int defaultThreadPoolSize, Map<String,Integer> customThreadPoolSizes, MetricsDatastore metricsDatastore)
public static MethodsConfig.MethodsConfigBuilder builder()
public boolean isStatsEnabled()
public String getExecutorName()
public int getMaxIdleMills()
public int getDefaultThreadPoolSize()
public Map<String,Integer> getCustomThreadPoolSizes()
public MetricsDatastore getMetricsDatastore()
public void setStatsEnabled(boolean statsEnabled)
public void setExecutorName(String executorName)
public void setMaxIdleMills(int maxIdleMills)
public void setDefaultThreadPoolSize(int defaultThreadPoolSize)
public void setCustomThreadPoolSizes(Map<String,Integer> customThreadPoolSizes)
public void setMetricsDatastore(MetricsDatastore metricsDatastore)
protected boolean canEqual(Object other)
Copyright © 2020. All rights reserved.