Uploaded image for project: 'Tools (JBoss Tools)'
  1. Tools (JBoss Tools)
  2. JBIDE-19710

Add new caching strategy in URLTransportUtility

XMLWordPrintable

    • Icon: Feature Request Feature Request
    • Resolution: Won't Do
    • Icon: Major Major
    • 4.3.0.Beta1
    • 4.3.0.Alpha2
    • common
    • None

      Currently, you can use URLTransportUtility like

      new URLTransportUtility().getCachedFileForURL(url, "Download stuff", lifespan, monitor);

      with lifespan possible values being :

      • URLTransportUtility.CACHE_UNTIL_EXIT : will cache the file during the workspace session
      • URLTransportUtility.CACHE_FOREVER : will cache the file forever once downloaded

      In certain cases, we want to be able to use CACHE_UNTIL_EXIT, but also be able to recover from network outages. So adding something like

      • URLTransportUtility.SAFE_CACHE_UNTIL_EXIT (feel free to find a better name) : if the remote file is available, it will be downloaded on new Eclipse session, if it's not, the last valid cache will be returned.

            rob.stryker Rob Stryker (Inactive)
            fbricon@redhat.com Fred Bricon
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: