Soaring Eagle wrote:

How does commons configuration determine when the interval is done
without caching at least the timestamp of the last read? In other
words, without threading, how does commons cache any data?

I am not sure.... but if you have a Singleton that has a field storing the last systime the reload was done, when the "getXXX()" is called, it could do something like


if (currentSystime - this.lastTimeReload > setInterval) {
        reload();
        return somethingNewlyCached;
} else {
        return somethingAlreadyCached;
}

Again since I didn't look at the code, I am just guessing out of nowhere.... :)


If I know
how, then I will surely use this feature from commons rather than
writing my own logic.

I use eclipse to start or stop my container. I will surely test all
this with other means. I doubt though that this will be a major issue.

Appreciate it if you'd let me know how that turns out and the specific container you use when all this happens.


Thanks!
Qingtian



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to