org.jboss.cache.interceptors
Class LockInterceptor

java.lang.Object
  extended byorg.jboss.cache.interceptors.Interceptor (src) 
      extended byorg.jboss.cache.interceptors.LockInterceptor

public class LockInterceptor
extends Interceptor (src)

Handles locking. When a TX is associated, we register for TX completion and unlock the locks acquired within the scope of the TX. When no TX is present, we keep track of the locks acquired during the current method and unlock when the method returns


Constructor Summary
LockInterceptor()
           
 
Method Summary
 java.lang.Object invoke(MethodCall m)
           
 void setCache(TreeCache (src)  cache)
           
 
Methods inherited from class org.jboss.cache.interceptors.Interceptor (src)
getNext, setNext
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LockInterceptor

public LockInterceptor()
Method Detail

setCache

public void setCache(TreeCache (src)  cache)
Overrides:
setCache in class Interceptor (src)

invoke

public java.lang.Object invoke(MethodCall m)
                        throws java.lang.Throwable
Overrides:
invoke in class Interceptor (src)
Throws:
java.lang.Throwable