[jboss-dev-forums] [Design of JBossCache] - Re: PojoCache uses a special node factory

ben.wang@jboss.com do-not-reply at jboss.com
Wed Jan 10 06:45:05 EST 2007


"manik.surtani at jboss.com" wrote : Rather than allowing users to pre-create buckets in an internal node (makes me shudder!) how about doing something like allowing users to somehow provide information on the bucket a node should belong to, a bit like Object.hashCode()?
  | 
  | We would probably want to use hashCode() on the Fqn as the primary way of determining which bucket the node goes in, but perhaps a mechanism of allowing the user to add a 'hint' to this would help.  
  | 

Relaxed. I am not saying user will create internal node directly. If you read my post, I was suggesting to have a flag to use the id field as a prefix under "__JBossInternal__". :-)

Hashcode is fine but that belongs to the Cache layer again of distributing them into hashed bucket.

Two different ways of optimizing the node creation for user to pick.


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

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



More information about the jboss-dev-forums mailing list