[jboss-dev-forums] [Design of JBossCache] - Re: Last chance for any changes to the 2.0.0 API
genman
do-not-reply at jboss.com
Tue Jan 9 18:15:28 EST 2007
A few last minute comments:
1. putIfNull -> putIfAbsent, See http://java.sun.com/j2se/1.5.0/docs/api/java/util/concurrent/ConcurrentMap.html . People might get confused with "null" versus absent.
2. Remove the print* methods in NodeSPI. Or at least document them. Consider creating a separate util class to print a node.
3. removeChildDirect(Fqn) and removeChildDirect(Object) is a little confusing, since Fqn is a subtype of Object. I would probably suggest just having one or the other.
4. Some of the NodeSPI data methods appear to be just convenience methods and aren't strictly necessary given that getDataDirect() returns an externally modifiable map. For instance, clearDataDirect() really just is the same as NodeSPI.getDataDirect().clear(). So, it would be nice to understand the reason for these extra methods.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3999669#3999669
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3999669
More information about the jboss-dev-forums
mailing list