|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jboss.cache.interceptors.Interceptor
org.jboss.cache.interceptors.PessimisticLockInterceptor
public class PessimisticLockInterceptor
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 | |
---|---|
PessimisticLockInterceptor()
|
Method Summary | |
---|---|
java.lang.Object |
invoke(org.jgroups.blocks.MethodCall m)
|
void |
setCache(TreeCache cache)
|
Methods inherited from class org.jboss.cache.interceptors.Interceptor |
---|
dumpStatistics, getInvocationContext, getNext, getStatisticsEnabled, isActive, isOnePhaseCommitPrepareMehod, isPreparing, isTransactionLifecycleMethod, isValid, resetStatistics, setInvocationContext, setNext, setStatisticsEnabled |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PessimisticLockInterceptor()
Method Detail |
---|
public void setCache(TreeCache cache)
setCache
in class Interceptor
public java.lang.Object invoke(org.jgroups.blocks.MethodCall m) throws java.lang.Throwable
invoke
in class Interceptor
java.lang.Throwable
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |