|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jboss.cache.interceptors.Interceptor org.jboss.cache.interceptors.OptimisticInterceptor org.jboss.cache.interceptors.OptimisticValidatorInterceptor
public class OptimisticValidatorInterceptor
Validates the data in the transaction workspace against data in the actual cache (versions only), and then performs commits if necessary. Does not pass on prepare/commit/rollbacks to the other interceptors.
Currently uses simplistic integer based versioning and validation. Plans are to have this configurable as there will always be a performance/complexity tradeoff. On the commit it applies the changes in the workspace to the real nodes in the cache. On rollback clears the nodes in the workspace.
Field Summary |
---|
Fields inherited from class org.jboss.cache.interceptors.OptimisticInterceptor |
---|
txManager, txTable |
Constructor Summary | |
---|---|
OptimisticValidatorInterceptor()
|
Method Summary | |
---|---|
java.lang.Object |
invoke(org.jgroups.blocks.MethodCall call)
|
void |
setCache(TreeCache cache)
|
Methods inherited from class org.jboss.cache.interceptors.OptimisticInterceptor |
---|
getTransactionWorkspace |
Methods inherited from class org.jboss.cache.interceptors.Interceptor |
---|
dumpStatistics, getInvocationContext, getNext, getStatisticsEnabled, isActive, isBuddyGroupOrganisationMethod, 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 OptimisticValidatorInterceptor()
Method Detail |
---|
public void setCache(TreeCache cache)
setCache
in class OptimisticInterceptor
public java.lang.Object invoke(org.jgroups.blocks.MethodCall call) 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 |