[jboss-dev-forums] [Design of JBossCache] - Re: Last minute 2.0 API suggestions
manik.surtani@jboss.com
do-not-reply at jboss.com
Mon Jan 22 09:33:19 EST 2007
anonymous wrote :
| 1. It would be nice if it returned a boolean not a Node
|
is this specifically useful though?
anonymous wrote :
| 2. Actually, I'm not sure "size" is a good idea. It still has to hit the interceptor chain to return the correct value, and for this I assume requires some non-trivial thought.
|
Well, retrieving the data or keys would also involve the interceptor stack and this is just a convenience atop that. But more than that, I'm doing it to get it in to the API. We can optimise and improve on this later, but at worst it will have the same overhead as doing getKeys().size()
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4004822#4004822
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4004822
More information about the jboss-dev-forums
mailing list