Package org.eclipse.lemminx.commons
Class ModelValidatorDelayer<T>
java.lang.Object
org.eclipse.lemminx.commons.ModelValidatorDelayer<T>
- Type Parameters:
T-
Validate a given model document with delay.
- Author:
- Angelo ZERR
-
Constructor Summary
ConstructorsConstructorDescriptionModelValidatorDelayer(ScheduledExecutorService executorService, Consumer<ModelTextDocument<T>> validator, long validationDelayMs) ModelValidatorDelayer(Consumer<ModelTextDocument<T>> validator) -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidvalidateWithDelay(ModelTextDocument<T> document) Validate the given modeldocumentidentified by the givenuriwith a delay.
-
Constructor Details
-
ModelValidatorDelayer
-
ModelValidatorDelayer
public ModelValidatorDelayer(ScheduledExecutorService executorService, Consumer<ModelTextDocument<T>> validator, long validationDelayMs)
-
-
Method Details
-
validateWithDelay
Validate the given modeldocumentidentified by the givenuriwith a delay.- Parameters:
uri- the document URI.document- the document model to validate.
-
cleanPendingValidation
-