Class IndexerConfig

java.lang.Object
io.github.apexdevtools.apexls.mcp.bridge.IndexerConfig

public class IndexerConfig extends Object
Configuration class for indexer timing parameters. Handles environment variable parsing and validation in a testable way.
  • Field Details

  • Constructor Details

    • IndexerConfig

      public IndexerConfig()
      Create configuration using system environment variables.
    • IndexerConfig

      public IndexerConfig(Function<String,String> envProvider)
      Create configuration with custom environment variable provider for testing.
    • IndexerConfig

      public IndexerConfig(long triggerMs, long quietPeriodMs)
      Create configuration with explicit values (for testing).
  • Method Details

    • validate

      public void validate() throws IllegalArgumentException
      Validate the configuration parameters and log warnings for potentially problematic values.
      Throws:
      IllegalArgumentException - if parameters are completely invalid
    • getTriggerMs

      public long getTriggerMs()
    • getQuietPeriodMs

      public long getQuietPeriodMs()
    • isEnabled

      public boolean isEnabled()
      Check if filesystem monitoring is enabled.
    • toString

      public String toString()
      Overrides:
      toString in class Object