commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Soaring Eagle <comfortable.n...@gmail.com>
Subject Re: Configuration - Reload Strategy in j2ee containers
Date Thu, 07 Apr 2005 13:34:52 GMT
Thank you Emmanuel.

On Apr 6, 2005 5:41 PM, Emmanuel Bourg <ebourg@apache.org> wrote:
> Soaring Eagle wrote:
> 
> > Thanks Emmanuel. But how does commons cache this timestamp? If it is a
> > singleton, how does commons ensure that the instance is always in
> > memory? For example, such a time interval could be set to many days
> > (concievably). How do ensure that the instance is not garbage
> > collected before the interval arrives?
> 
> A ReloadingStrategy is assigned to the FileConfiguration, and the
> ReloadingStrategy keeps the timestamp. So as long as you keep a
> reference to your configuration, it will not be garbage collected.
> 
> Emmanuel Bourg
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: commons-user-help@jakarta.apache.org
> 
>

---------------------------------------------------------------------
To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-user-help@jakarta.apache.org


Mime
View raw message