Package org.eclipse.lemminx.client
Class LimitExceededWarner
- java.lang.Object
-
- org.eclipse.lemminx.client.AbstractXMLNotifier
-
- org.eclipse.lemminx.client.LimitExceededWarner
-
public class LimitExceededWarner extends AbstractXMLNotifier
LimitExceededWarner sends a warning to the client via a jsonrpc notification Cache is a Map> 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 Constructor Description LimitExceededWarner(IXMLNotificationService notificationService)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidonResultLimitExceeded(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 set-
Methods inherited from class org.eclipse.lemminx.client.AbstractXMLNotifier
addToCache, evictKey, evictValue, existsInCache, existsInCache, getSharedSettings, sendNotification, setCacheValues
-
-
-
-
Constructor Detail
-
LimitExceededWarner
public LimitExceededWarner(IXMLNotificationService notificationService)
-
-
Method Detail
-
onResultLimitExceeded
public void onResultLimitExceeded(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 set- Parameters:
uri- the file urifeatureName- the feature name
-
onResultLimitExceeded
public void onResultLimitExceeded(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 cache- Parameters:
uri- the file uriresultLimit- the result limitfeature- the feature
-
-