[jboss-jira] [JBoss JIRA] Commented: (JBCACHE-702) PojoCache to specify a user-defined region option for buddy replication and eviction policy

Ben Wang (JIRA) jira-events at jboss.com
Mon Jul 31 01:14:11 EDT 2006


    [ http://jira.jboss.com/jira/browse/JBCACHE-702?page=comments#action_12340253 ] 
            
Ben Wang commented on JBCACHE-702:
----------------------------------

I have decided to use the thread local approach, InvocationContext to provide the region concept. The usage will be:

InvocationContext.setRegion("SESSION");
cache.attach()
cache.detach()
...



> PojoCache to specify a user-defined region option for buddy replication and eviction policy
> -------------------------------------------------------------------------------------------
>
>                 Key: JBCACHE-702
>                 URL: http://jira.jboss.com/jira/browse/JBCACHE-702
>             Project: JBoss Cache
>          Issue Type: Feature Request
>      Security Level: Public(Everyone can see) 
>          Components: PojoCache
>            Reporter: Ben Wang
>         Assigned To: Ben Wang
>             Fix For: 2.0.0
>
>
> Currently, the design of flat space mapping in 2.0 means that the object graph doesn't reside under the same tree. When we have buddy replication, eviction or cacheloader, this can be a problem to implement. The best solution is to have an notion of region. For example, something toward this line:
> cache.attach(region, id, pojo) 
> will ensure everything is put under /region/id, and __JBOSS_INTERNAL__/region/guid
> I am thinking to put this in an Option class such as:
> cache.attach(id, pojo, option)
> so it is more generic.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        



More information about the jboss-jira mailing list