Package org.eclipse.lemminx.commons
Class ModelValidatorDelayer<T>
- java.lang.Object
-
- org.eclipse.lemminx.commons.ModelValidatorDelayer<T>
-
- Type Parameters:
T-
public class ModelValidatorDelayer<T> extends Object
Validate a given model document with delay.- Author:
- Angelo ZERR
-
-
Constructor Summary
Constructors Constructor Description ModelValidatorDelayer(ScheduledExecutorService executorService, Consumer<ModelTextDocument<T>> validator, long validationDelayMs)ModelValidatorDelayer(Consumer<ModelTextDocument<T>> validator)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcleanPendingValidation(String uri)voidvalidateWithDelay(ModelTextDocument<T> document)Validate the given modeldocumentidentified by the givenuriwith a delay.
-
-
-
Constructor Detail
-
ModelValidatorDelayer
public ModelValidatorDelayer(Consumer<ModelTextDocument<T>> validator)
-
ModelValidatorDelayer
public ModelValidatorDelayer(ScheduledExecutorService executorService, Consumer<ModelTextDocument<T>> validator, long validationDelayMs)
-
-
Method Detail
-
validateWithDelay
public void validateWithDelay(ModelTextDocument<T> document)
Validate the given modeldocumentidentified by the givenuriwith a delay.- Parameters:
uri- the document URI.document- the document model to validate.
-
cleanPendingValidation
public void cleanPendingValidation(String uri)
-
-