Examples of LRUCache


Examples of org.aspectj.org.eclipse.jdt.internal.core.util.LRUCache

    public PerProjectInfo(IProject project) {

      this.triedRead = false;
      this.savedState = null;
      this.project = project;
      this.javadocCache = new LRUCache(JAVADOC_CACHE_INITIAL_SIZE);
    }
View Full Code Here

Examples of org.aspectj.org.eclipse.jdt.internal.core.util.LRUCache

      this.rawClasspathStatus = newRawClasspathStatus;
      this.resolvedClasspath = newResolvedClasspath;
      this.rootPathToRawEntries = newRootPathToRawEntries;
      this.rootPathToResolvedEntries = newRootPathToResolvedEntries;
      this.unresolvedEntryStatus = newUnresolvedEntryStatus;
      this.javadocCache = new LRUCache(JAVADOC_CACHE_INITIAL_SIZE);
    }
View Full Code Here

Examples of org.aspectj.org.eclipse.jdt.internal.core.util.LRUCache

    default:
      this.childrenCache.remove(element);
  }
}
protected void resetJarTypeCache() {
  this.jarTypeCache = new LRUCache((int) (DEFAULT_OPENABLE_SIZE * getMemoryRatio()));
}
 
View Full Code Here

Examples of org.broad.igv.util.collections.LRUCache

    ResourceLocator rootLocator;
    Genome genome;

    public FeatureDirSource(ResourceLocator locator, Genome genome) throws IOException {
        this.genome = genome;
        featureCache = new LRUCache(3);
        rootLocator = locator;
        setRootDir(locator.getPath());

        fileMap = new Properties();
        InputStream propStream = ParsingUtils.openInputStreamGZ(locator);
View Full Code Here

Examples of org.codehaus.activemq.util.LRUCache

     * @param maximumNumberOfProducersToTrack
     *                   number of producers expected in the system
     */
    public ActiveMQMessageAudit(int windowSize, final int maximumNumberOfProducersToTrack) {
        this.windowSize = windowSize;
        map = new LRUCache(maximumNumberOfProducersToTrack);
    }
View Full Code Here

Examples of org.codehaus.groovy.runtime.memoize.LRUCache

     * @return A new function forwarding to the original one while caching the results
     */
    public Closure<V> memoizeAtMost(final int maxCacheSize) {
        if (maxCacheSize < 0) throw new IllegalArgumentException("A non-negative number is required as the maxCacheSize parameter for memoizeAtMost.");

        return Memoize.buildMemoizeFunction(new LRUCache(maxCacheSize), this);
    }
View Full Code Here

Examples of org.codehaus.groovy.runtime.memoize.LRUCache

    public Closure<V> memoizeBetween(final int protectedCacheSize, final int maxCacheSize) {
        if (protectedCacheSize < 0) throw new IllegalArgumentException("A non-negative number is required as the protectedCacheSize parameter for memoizeBetween.");
        if (maxCacheSize < 0) throw new IllegalArgumentException("A non-negative number is required as the maxCacheSize parameter for memoizeBetween.");
        if (protectedCacheSize > maxCacheSize) throw new IllegalArgumentException("The maxCacheSize parameter to memoizeBetween is required to be greater or equal to the protectedCacheSize parameter.");

        return Memoize.buildSoftReferenceMemoizeFunction(protectedCacheSize, new LRUCache(maxCacheSize), this);
    }
View Full Code Here

Examples of org.eclipse.core.internal.expressions.util.LRUCache

/* package */ class PropertyCache {
 
  private LRUCache fCache;
 
  public PropertyCache(final int cacheSize) {
    fCache= new LRUCache(100);
    fCache.setSpaceLimit(cacheSize);
  }
View Full Code Here

Examples of org.eclipse.dltk.internal.core.util.LRUCache

    public TwigDOMModelParser(DOMModelImpl model)
    {
        super(model);

        cache = new LRUCache();

    }
View Full Code Here

Examples of org.eclipse.jdt.internal.core.util.LRUCache

    public PerProjectInfo(IProject project) {

      this.triedRead = false;
      this.savedState = null;
      this.project = project;
      this.javadocCache = new LRUCache(JAVADOC_CACHE_INITIAL_SIZE);
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.