Class ImageManagerSourceRam<T,D>

    • Constructor Detail

      • ImageManagerSourceRam

        public ImageManagerSourceRam(int nThreads,
                                     int cacheSize,
                                     ImageSource<T,D> source)
        Create an ImageSource based ImageManager implementation that does in-RAM caching.
        Parameters:
        nThreads - the number of threads to use for providing images.
        cacheSize - the number of data elements to store in the RAM cache.
        source - the ImageSource to use for creation of unknown requests.
    • Method Detail

      • getImageSource

        public ImageSource<T,D> getImageSource()
        Get the ImageSource object
        Returns:
        the image source.
      • get

        public D get(T thing)
      • get

        public D get(T thing,
                     Integer priority)
      • cancelJobs

        public void cancelJobs()
      • willNeed

        public void willNeed(T thing)
      • setIgnorePendingProductions

        public void setIgnorePendingProductions()
      • destroy

        public void destroy()
      • stopRunning

        public void stopRunning()
        Stop producing new elements.
      • unchache

        public void unchache(T thing)
        Ensure that the denoted thing will be removed from the cache.
        Parameters:
        thing - the thing to remove.
      • clearCache

        public void clearCache()
        Clear the underlying cache.
      • setCacheHintMinimumSize

        public void setCacheHintMinimumSize(int size)