T
- public class ModelValidatorDelayer<T> extends Object
Constructor and Description |
---|
ModelValidatorDelayer(Consumer<ModelTextDocument<T>> validator) |
ModelValidatorDelayer(ScheduledExecutorService executorService,
Consumer<ModelTextDocument<T>> validator,
long validationDelayMs) |
Modifier and Type | Method and Description |
---|---|
void |
cleanPendingValidation(String uri) |
void |
validateWithDelay(ModelTextDocument<T> document)
Validate the given model
document identified by the given
uri with a delay. |
public ModelValidatorDelayer(Consumer<ModelTextDocument<T>> validator)
public ModelValidatorDelayer(ScheduledExecutorService executorService, Consumer<ModelTextDocument<T>> validator, long validationDelayMs)
public void validateWithDelay(ModelTextDocument<T> document)
document
identified by the given
uri
with a delay.uri
- the document URI.document
- the document model to validate.public void cleanPendingValidation(String uri)
Copyright © 2022. All rights reserved.