[jboss-dev-forums] [Design of JBossCache] - Re: state transfer failure handling

manik.surtani@jboss.com do-not-reply at jboss.com
Thu Sep 14 08:32:02 EDT 2006


Good point.

In the cache loader/store interceptors, I no longer sync on the cache loader but on an object attributed to the fqn in question (improves concurrency in the loader/store interceptors) (see BaseCacheLoaderInterceptor)

But this means that locking on the cache loader during ST will not prevent the interceptors from writing to the loader.  What you'd need to do is to get a loader lock on a per-fqn basis using the lock map in the BaseCacheLoaderInterceptor.  This lock map will probably have to be refactored out of this Interceptor for this though, perhaps into the CacheLoaderManager.

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

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



More information about the jboss-dev-forums mailing list