I do see a dispose method on CacheAccess but it is protected method and
hnece cannot be accessed. Also there is a test program which is in src/test
folder of JCS cvs repository which uses this method to dispose the cache .
But this program could use this method because its in same package as
cacheaccess class. Is this is a defect in JCS or am I missing something ?

Thanks
Sunil


                                                                                       
                            
                    Sunil                                                              
                            
                    Pandit/FSG/CS        To:     Turbine JCS Users List 
<[EMAIL PROTECTED]>      
                    C                    cc:                                           
                            
                    @CSC                 Subject:     when is the  compositecache 
object released  from            
                                         CacheManager?                                 
                            
                    11/04/2002                                                         
                            
                    09:57 AM                                                           
                            
                    Please                                                             
                            
                    respond to                                                         
                            
                    "Turbine JCS                                                       
                            
                    Users List"                                                        
                            
                                                                                       
                            
                                                                                       
                            




Hello JCS Users

I  was debugging JCS code  GroupCacheAccess getGroupAccess method . I found
that the compositecachemanager :getCache method checks if there is a
compositecache object in a hashtable with the same cache name . If so it
returns the existing and if not it creates new Compositecache add that to
the hashtable and return it .
My question is when is this compositecache object removed from the
hashtable ?

Is there an exclusive way to remove this object from the memory ?

In my case there could be several such compositecache created on a single
JVM and during the life of application the objects stored in such
compositecache are removed and this compositecache will never be used
again. So  instead of keeping this hashtable growing we need to remove
these objects from the hashtable.

I have seen one method on the cacheaccess. cacheaccess:dispose . But this
method is protected and cannot be accessed .

Should there be some method on groupcacheaccess that delegates to the
cachemanager:freecache method which would remove this cache from the
hashtable ?

Thanks
Sunil



--
To unsubscribe, e-mail:   <
mailto:turbine-jcs-user-unsubscribe@;jakarta.apache.org>
For additional commands, e-mail: <
mailto:turbine-jcs-user-help@;jakarta.apache.org>






--
To unsubscribe, e-mail:   <mailto:turbine-jcs-user-unsubscribe@;jakarta.apache.org>
For additional commands, e-mail: <mailto:turbine-jcs-user-help@;jakarta.apache.org>

Reply via email to