[jboss-dev-forums] [Design of JBossCache] - Re: JBCACHE-1154 - Introduce ability to mark nodes as reside

manik.surtani@jboss.com do-not-reply at jboss.com
Mon Oct 1 06:23:01 EDT 2007


"mircea.markus" wrote : anonymous wrote : 3. You add methods to a general interface that are specific to a non-general concern.
  | I tend to agree that 'resident' is an non-general concern. As it has meaning only in the scope of eviction.  Phps move closer to the eviction layer? e.g.
  | Region.markNodeResident(Fqn, isResident);
  |   | Region.isNodeResident(Fqn);
  |   | 
  | On the other hand this would make the API a bit cumbersome. IMO the info should be held there, still. Others?
  | 

Node metadata is the proper place to store this, since this flag would affect individual nodes, not regions of nodes.  Considering where we're going with node and region design, with Regions becoming a fully configurable top-level construct in future, I don't want to clutter up the Region API anyway.



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

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



More information about the jboss-dev-forums mailing list