org.jboss.cache.interceptors
Class PessimisticLockInterceptor
java.lang.Object
org.jboss.cache.interceptors.Interceptor
org.jboss.cache.interceptors.PessimisticLockInterceptor
- All Implemented Interfaces:
- InterceptorMBean
public class PessimisticLockInterceptor
- extends Interceptor
An interceptor that 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 4659 2007-10-22 10:45:50Z mircea.markus $
- Author:
- Bela Ban
Methods inherited from class org.jboss.cache.interceptors.Interceptor |
dumpStatistics, getLast, getNext, getStatisticsEnabled, isActive, isOnePhaseCommitPrepareMehod, isPreparing, isValid, resetStatistics, setLast, setNext, setStatisticsEnabled, toString |
PessimisticLockInterceptor
public PessimisticLockInterceptor()
setCache
public void setCache(CacheSPI cache)
- Overrides:
setCache
in class Interceptor
invoke
public Object invoke(InvocationContext ctx)
throws Throwable
- Overrides:
invoke
in class Interceptor
- Throws:
Throwable
Copyright © 2007 JBoss, a division of Red Hat. All Rights Reserved.