Class BackgroundLoader

java.lang.Object
java.lang.Thread
net.ionite.docval.validation.BackgroundLoader
All Implemented Interfaces:
Runnable

public class BackgroundLoader extends Thread
Standalone Thread implementation to load the data from a background thread
  • Constructor Details

    • BackgroundLoader

      public BackgroundLoader(ValidatorManager validatorManager, ConfigData configData, HealthService healthService)
      The backgroundloader is a Thread class that can load all validation files in the configuration in the background.
      Parameters:
      validatorManager - The validator manager class that is to be updated
      configData - The configuration containing the files that are to be loaded
      healthService - If provided, setStartupComplete() is called on this service when the loader is done. Ignored if this value is null.
  • Method Details

    • run

      public void run()
      Start the background loader thread
      Specified by:
      run in interface Runnable
      Overrides:
      run in class Thread