[jbosstools-issues] [JBoss JIRA] (JBIDE-19710) Add new caching strategy in URLTransportUtility

Fred Bricon (JIRA) issues at jboss.org
Fri Apr 24 17:45:52 EDT 2015


    [ https://issues.jboss.org/browse/JBIDE-19710?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13062618#comment-13062618 ] 

Fred Bricon edited comment on JBIDE-19710 at 4/24/15 5:45 PM:
--------------------------------------------------------------

You're right, CACHE_FOREVER still performs the HEAD requests to check for updates. 
Using this strategy makes Central survive offline restarts. 


was (Author: fbricon):
You're right CACHE_FOREVER still performs the HEAD requests to check for updates. 
Using this strategy makes Central survive offline restarts. 

> Add new caching strategy in URLTransportUtility
> -----------------------------------------------
>
>                 Key: JBIDE-19710
>                 URL: https://issues.jboss.org/browse/JBIDE-19710
>             Project: Tools (JBoss Tools)
>          Issue Type: Feature Request
>          Components: common/jst/core
>    Affects Versions: 4.3.0.Alpha2
>            Reporter: Fred Bricon
>            Assignee: Rob Stryker
>             Fix For: 4.3.0.Beta1
>
>
> 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.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)


More information about the jbosstools-issues mailing list