Interface ICachedLoaderJob<K>

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      CacheEntry get()
      fetches object from cache, or returns null when object is not found
      K getCacheKey()
      returns cache entry key
      java.net.URL getUrl()
      method to get download URL for Job
      void submit​(ICachedLoaderListener listener, boolean force)
      Submit job for background fetch, and listener will be fed with value object
      • Methods inherited from interface java.lang.Runnable

        run
    • Method Detail

      • getCacheKey

        K getCacheKey()
        returns cache entry key
        Returns:
        cache key for tile
      • getUrl

        java.net.URL getUrl()
                     throws java.io.IOException
        method to get download URL for Job
        Returns:
        URL that should be fetched
        Throws:
        java.io.IOException - when could not determine the URL of the tile
      • get

        CacheEntry get()
        fetches object from cache, or returns null when object is not found
        Returns:
        filled tile with data or null when no cache entry found
      • submit

        void submit​(ICachedLoaderListener listener,
                    boolean force)
             throws java.io.IOException
        Submit job for background fetch, and listener will be fed with value object
        Parameters:
        listener - cache loader listener
        force - true if the load should skip all the caches (local & remote)
        Throws:
        java.io.IOException - on failure from getUrl() call