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

bstansberry@jboss.com do-not-reply at jboss.com
Fri Aug 8 13:20:48 EDT 2008


I think you need a Region.canIgnoreEvent(Fqn fqn, NodeEventType eventType). Only having Region.putNodeEvent(NodeEvent event) is less efficient as you have to create the event object even if it will be ignored.

Hmm -- if I do this

cache.put(Fqn.fromString("/a/really/deeply/nested/node", "key", "value")

and all the higher level nodes already exist, are any eviction events generated for "/a", "/a/really", "/a/really/deeply", "/a/really/deeply/nested"?

If not there's probably no benefit to Region.canIgnoreEvent(Fqn fqn, NodeEventType eventType).

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

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



More information about the jboss-dev-forums mailing list