[jboss-dev-forums] [Design of JBossCache] - Re: Eviction redesign

manik.surtani@jboss.com do-not-reply at jboss.com
Thu Aug 14 03:16:23 EDT 2008


"mircea.markus" wrote : anonymous wrote : Perhaps a different name for "EvictionPolicy", maybe "EvictionActionPolicy" or something. Using the same term for a different thing will be confusing.
  | I think that the Policy and Algorithm are a not very meaningful terms for describing the responsibility of these classes; also the terms overlap. What about some other names? 
  | anonymous wrote : EvictionAlgorithm - how  are nodes selected for eviction 
  | EvictionOrderingPolicy
  | anonymous wrote : EvictionPolicy - what  happens when nodes are evicted 
  | +1 for EvictionActionPolicy

I agree that EvictionPolicy is too abstract/too much of a catch-all to be meaningful, but I think EvictionAlgorithm is pretty clear and makes sense.  EvictionOrderingPolicy isn't quite right either since the algo doesn't exactly order stuff, but selects stuff for eviction.  Perhaps EvictionSelectionAlgorithm if you think EvictionAlgorithm is too general.

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

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



More information about the jboss-dev-forums mailing list