Package 

Class GlobalCache

    • Constructor Summary

      Constructors 
      Constructor Description
      GlobalCache(ImmutableConfig conf)
    • Method Summary

      Modifier and Type Method Description
      FetchCacheManager getFetchCaches() The fetch cache manager, hold on queues of fetch items
      Unit setFetchCaches(FetchCacheManager fetchCaches) The fetch cache manager, hold on queues of fetch items
      ConcurrentExpiringLRUCache<String, WebPage> getPageCache() The global page cache, a page might be removed if it's expired or the cache is full
      ConcurrentExpiringLRUCache<String, FeaturedDocument> getDocumentCache() The global document cache, a document might be removed if it's expired or the cache is full
      FetchingCache getFetchingUrlQueue()
      final ImmutableConfig getConf()
      final Unit resetCaches()
      final Unit putPDCache(WebPage page, FeaturedDocument document) Put page and document to cache
      final Unit removePDCache(String url) Remove item from page cache and document cache
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • GlobalCache

        GlobalCache(ImmutableConfig conf)
    • Method Detail

      • getFetchCaches

         FetchCacheManager getFetchCaches()

        The fetch cache manager, hold on queues of fetch items

      • setFetchCaches

         Unit setFetchCaches(FetchCacheManager fetchCaches)

        The fetch cache manager, hold on queues of fetch items

      • getPageCache

         ConcurrentExpiringLRUCache<String, WebPage> getPageCache()

        The global page cache, a page might be removed if it's expired or the cache is full

      • getDocumentCache

         ConcurrentExpiringLRUCache<String, FeaturedDocument> getDocumentCache()

        The global document cache, a document might be removed if it's expired or the cache is full

      • getConf

         final ImmutableConfig getConf()
      • putPDCache

         final Unit putPDCache(WebPage page, FeaturedDocument document)

        Put page and document to cache