Package net.ionite.docval.validation
Class BackgroundLoader
java.lang.Object
java.lang.Thread
net.ionite.docval.validation.BackgroundLoader
- All Implemented Interfaces:
Runnable
Standalone Thread implementation to load the data from a background thread
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Thread
Thread.Builder, Thread.State, Thread.UncaughtExceptionHandler -
Field Summary
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY -
Constructor Summary
ConstructorsConstructorDescriptionBackgroundLoader(ValidatorManager validatorManager, ConfigData configData, HealthService healthService) The backgroundloader is a Thread class that can load all validation files in the configuration in the background. -
Method Summary
Methods inherited from class java.lang.Thread
activeCount, checkAccess, clone, countStackFrames, currentThread, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, isVirtual, join, join, join, join, ofPlatform, ofVirtual, onSpinWait, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, sleep, start, startVirtualThread, stop, suspend, threadId, toString, yield
-
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 updatedconfigData- The configuration containing the files that are to be loadedhealthService- If provided, setStartupComplete() is called on this service when the loader is done. Ignored if this value is null.
-
-
Method Details