Class SCIMConfig

java.lang.Object
com.slack.api.scim.SCIMConfig

public class SCIMConfig extends Object
Configuration for SCIMClient.
  • Field Details

    • DEFAULT_SINGLETON_EXECUTOR_NAME

      public static final 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).
      See Also:
    • DEFAULT_SINGLETON

      public static final SCIMConfig DEFAULT_SINGLETON
      The default configuration. It's not allowed to modify this runtime for any reasons.
  • Constructor Details

    • SCIMConfig

      public SCIMConfig()
    • SCIMConfig

      public SCIMConfig(boolean statsEnabled, String executorName, int maxIdleMills, int defaultThreadPoolSize, ExecutorServiceProvider executorServiceProvider, Map<String,Integer> customThreadPoolSizes, MetricsDatastore metricsDatastore)
      Creates a new SCIMConfig instance.
      Parameters:
      statsEnabled -
      executorName - If you need to have multiple executors in the same Slack app, name this accordingly.
      maxIdleMills - The max period to keep asynchronous API method calls idle.
      defaultThreadPoolSize - The default thread pool size used for asynchronous API method calls.
      executorServiceProvider -
      customThreadPoolSizes - Enterprise ID -> thread pool size
      metricsDatastore - The metrics datastore to track the traffic associated to this executor name.
  • Method Details

    • builder

      public static SCIMConfig.SCIMConfigBuilder builder()
    • isStatsEnabled

      public boolean isStatsEnabled()
    • getExecutorName

      public String 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

      public ExecutorServiceProvider getExecutorServiceProvider()
    • getCustomThreadPoolSizes

      public Map<String,Integer> getCustomThreadPoolSizes()
      Enterprise ID -> thread pool size
    • getMetricsDatastore

      public MetricsDatastore getMetricsDatastore()
      The metrics datastore to track the traffic associated to this executor name.
    • setStatsEnabled

      public void setStatsEnabled(boolean statsEnabled)
    • setExecutorName

      public void setExecutorName(String executorName)
      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

      public void setExecutorServiceProvider(ExecutorServiceProvider executorServiceProvider)
    • setCustomThreadPoolSizes

      public void setCustomThreadPoolSizes(Map<String,Integer> customThreadPoolSizes)
      Enterprise ID -> thread pool size
    • setMetricsDatastore

      public void setMetricsDatastore(MetricsDatastore metricsDatastore)
      The metrics datastore to track the traffic associated to this executor name.
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • canEqual

      protected boolean canEqual(Object other)
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object