[jboss-dev-forums] [Design of JBossCache] - SingletonStoreCacheLoader in 2.0
galder.zamarreno@jboss.com
do-not-reply at jboss.com
Wed Sep 20 04:15:32 EDT 2006
Couple of things came to my mind while I was coding this:
- AsyncCacheLoader and SingletonStoreCacheLoader share the same
paradigm in that none of them write to the actual store, but delegate to an
underlying cache loader. I thought about extending the CacheLoader
interface, creating an interface named DelegatingCacheLoader. This would
containg a getCacheLoader() method that would return the underlying
CacheLoader instance. This would also simplify
CacheLoaderInterceptor.isCustomCacheLoaderConfigured() implementation
as the instanceOf would be done by DelegatingCacheLoader instead of the
individual caches.
- Also, let's say a customer creates a singleton and async cacheloader. The
delegating order should not be any problem, but I'd quite likely have singleton
on top so that if the node is not the coordinator, don't even bother with the
async layer.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3972839#3972839
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3972839
More information about the jboss-dev-forums
mailing list