org.jboss.cache.interceptors
Class PessimisticLockInterceptor
java.lang.Object
|
+--org.jboss.cache.interceptors.Interceptor
|
+--org.jboss.cache.interceptors.AbstractLockInterceptor
|
+--org.jboss.cache.interceptors.PessimisticLockInterceptor
- public class PessimisticLockInterceptor
- extends AbstractLockInterceptor
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
- Version:
- $Id: PessimisticLockInterceptor.java,v 1.6.8.1 2006/02/07 05:02:31 bstansberry Exp $
- Author:
- Bela Ban
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PessimisticLockInterceptor
public PessimisticLockInterceptor()
setCache
public void setCache(TreeCache cache)
- Overrides:
setCache
in class Interceptor
invoke
public java.lang.Object invoke(org.jgroups.blocks.MethodCall m)
throws java.lang.Throwable
- Overrides:
invoke
in class Interceptor
java.lang.Throwable
Copyright © 1998-2005 JBoss Inc . All Rights Reserved.