[jboss-dev-forums] [Design of JBossCache] - Re: JBoss Cache Options API

jason.greene@jboss.com do-not-reply at jboss.com
Fri Jan 30 11:27:00 EST 2009


"manik.surtani at jboss.com" wrote : "jason.greene at jboss.com" wrote : 
  |   | CacheSession session = cache.getCacheSession();
  |   | session.setOption(BLAH_ENUM);
  |   | session.put(x,y);
  |   | 
  | 
  | That's not a lot different from your getAdvanced(), except that the new interface allows you to set options in a separate method rather than an overloaded method.  And then sticks it in a thread-local.  :)
  | 
  | 

No there is no thread local. The session object in this case would be a normal object, with fields for the current option.

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

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



More information about the jboss-dev-forums mailing list