Package com.slack.api.audit
Class AuditConfig
java.lang.Object
com.slack.api.audit.AuditConfig
Configuration for
AuditClient
.-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final AuditConfig
The default configuration.static final String
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 Summary
ConstructorsConstructorDescriptionAuditConfig
(boolean statsEnabled, String executorName, int maxIdleMills, int defaultThreadPoolSize, Map<String, Integer> customThreadPoolSizes, ExecutorServiceProvider executorServiceProvider, MetricsDatastore metricsDatastore) -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
protected boolean
boolean
Enterprise ID -> thread pool sizeint
The 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.int
The max period to keep asynchronous API method calls idle.The metrics datastore to track the traffic associated to this executor name.int
hashCode()
boolean
void
setCustomThreadPoolSizes
(Map<String, Integer> customThreadPoolSizes) Enterprise ID -> thread pool sizevoid
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
setExecutorServiceProvider
(ExecutorServiceProvider executorServiceProvider) 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) 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
-
AuditConfig
public AuditConfig() -
AuditConfig
public AuditConfig(boolean statsEnabled, String executorName, int maxIdleMills, int defaultThreadPoolSize, Map<String, Integer> customThreadPoolSizes, ExecutorServiceProvider executorServiceProvider, 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. -
getCustomThreadPoolSizes
Enterprise ID -> thread pool size -
getExecutorServiceProvider
-
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. -
setCustomThreadPoolSizes
Enterprise ID -> thread pool size -
setExecutorServiceProvider
-
setMetricsDatastore
The metrics datastore to track the traffic associated to this executor name. -
equals
-
canEqual
-
hashCode
public int hashCode() -
toString
-