Class 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
    • 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 the feature's cache set After sending the warning, the uri is added to the feature's cache set
        Parameters:
        uri - the file uri
        featureName - 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 uri
        resultLimit - the result limit
        feature - the feature