Class IndexerConfig
java.lang.Object
io.github.apexdevtools.apexls.mcp.bridge.IndexerConfig
Configuration class for indexer timing parameters. Handles environment variable parsing and
validation in a testable way.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionCreate configuration using system environment variables.IndexerConfig(long triggerMs, long quietPeriodMs) Create configuration with explicit values (for testing).IndexerConfig(Function<String, String> envProvider) Create configuration with custom environment variable provider for testing. -
Method Summary
-
Field Details
-
DEFAULT_TRIGGER_MS
public static final long DEFAULT_TRIGGER_MS- See Also:
-
DEFAULT_QUIET_PERIOD_MS
public static final long DEFAULT_QUIET_PERIOD_MS- See Also:
-
TRIGGER_ENV_VAR
- See Also:
-
QUIET_PERIOD_ENV_VAR
- See Also:
-
-
Constructor Details
-
IndexerConfig
public IndexerConfig()Create configuration using system environment variables. -
IndexerConfig
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
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
-