Package org.eclipse.lemminx.client
Class LimitExceededWarner
java.lang.Object
org.eclipse.lemminx.client.AbstractXMLNotifier
org.eclipse.lemminx.client.LimitExceededWarner
LimitExceededWarner sends a warning to the client via a jsonrpc notification
Cache is a Map<String, Set>
where the keys are the feature names and the values are the file paths for
which notifications have been sent already
-
Field Summary
Fields inherited from class org.eclipse.lemminx.client.AbstractXMLNotifier
cache -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidonResultLimitExceeded(String uri, int resultLimit, LimitFeature feature) Sends the limit exceeded warning to the client only if the provided uri does not exist in the cache After sending the warning, the uri is added to the cachevoidonResultLimitExceeded(String uri, LimitFeature feature) Sends the limit exceeded warning to the client only if the provided uri does not exist in thefeature's cache set After sending the warning, the uri is added to thefeature's cache setMethods inherited from class org.eclipse.lemminx.client.AbstractXMLNotifier
addToCache, evictKey, evictValue, existsInCache, existsInCache, getSharedSettings, sendNotification, setCacheValues
-
Constructor Details
-
LimitExceededWarner
-
-
Method Details
-
onResultLimitExceeded
Sends the limit exceeded warning to the client only if the provided uri does not exist in thefeature's cache set After sending the warning, the uri is added to thefeature's cache set- Parameters:
uri- the file urifeatureName- the feature name
-
onResultLimitExceeded
Sends the limit exceeded warning to the client only if the provided uri does not exist in the cache After sending the warning, the uri is added to the cache- Parameters:
uri- the file uriresultLimit- the result limitfeature- the feature
-