[jboss-dev-forums] [Design of JBossCache] - Re: JBoss Cache Public API

manik.surtani@jboss.com do-not-reply at jboss.com
Tue Jul 15 13:17:22 EDT 2008


Bringing this back up again.

"bstansberry at jboss.com" wrote : 
  | Depends on whether they require some cleanup beyond garbage collection. Sounds like that's the thing to investigate. 
  | 

Consider a lot of the collections maintained by several components, like Notifiers, RegionManagers, etc.  Usually these are uninitialized, are set on creation so that after creation, for example, regions and listeners can be created and added.  Upon calling stop(), these are emptied, but the collections still exist so that more such elements could be added and the cache restarted.  Destroy() on the other hand assigns the refs to these collections to null, so that the collections themselves can be gc()'d.

I guess the question to ask is how important is it to have these collections hanging around?  Not a severe impact, I imagine, given that  a ref to the cache still exists.

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4164560#4164560

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4164560



More information about the jboss-dev-forums mailing list