org.jboss.cache.interceptors
Class OptimisticNodeInterceptor
java.lang.Object
org.jboss.cache.interceptors.Interceptor
org.jboss.cache.interceptors.MethodDispacherInterceptor
org.jboss.cache.interceptors.OptimisticInterceptor
org.jboss.cache.interceptors.OptimisticNodeInterceptor
- All Implemented Interfaces:
- InterceptorMBean
public class OptimisticNodeInterceptor
- extends OptimisticInterceptor
Operations on nodes are done on the copies that exist in the workspace rather than passed down
to the CallInterceptor
. These operations happen in this interceptor.
- Author:
- Manik Surtani (manik@jboss.org), Steve Woodcock (stevew@jofti.com)
Methods inherited from class org.jboss.cache.interceptors.MethodDispacherInterceptor |
handleAddChildMethod, handleBlockChannelMethod, handleCommitMethod, handleDataGravitationCleanupMethod, handleEvictMethod, handleEvictVersionedNodeMethod, handleExistsMethod, handleGetDataMapMethod, handleGetChildrenNamesMethod, handleGetKeysMethod, handleGetKeyValueMethod, handleGetNodeMethod, handleLockMethod, handleMoveMethod, handleOptimisticPrepareMethod, handlePrepareMethod, handlePrintMethod, handlePutDataEraseMethod, handlePutDataEraseVersionedMethod, handlePutDataMethod, handlePutDataVersionedMethod, handlePutForExternalReadMethod, handlePutForExternalReadVersionedMethod, handlePutKeyValueMethod, handlePutKeyValueVersionedMethod, handleReleaseAllLocksMethod, handleRemoveDataMethod, handleRemoveDataVersionedMethod, handleRemoveKeyMethod, handleRemoveKeyVersionedMethod, handleRemoveNodeMethod, handleRemoveNodeVersionedMethod, handleRollbackMethod, handleUnblockChannelMethod, skipMethodCall |
Methods inherited from class org.jboss.cache.interceptors.Interceptor |
assertTransactionValid, dumpStatistics, getLast, getNext, getStatisticsEnabled, initLogger, isActive, isPreparing, isValid, nextInterceptor, peekNode, resetStatistics, setLast, setNext, setStatisticsEnabled, toString |
OptimisticNodeInterceptor
public OptimisticNodeInterceptor()
injectDependencies
protected void injectDependencies(Notifier notifier,
NodeFactory nodeFactory)
setCache
public void setCache(CacheSPI cache)
- Overrides:
setCache
in class Interceptor
invoke
public Object invoke(InvocationContext ctx)
throws Throwable
- Description copied from class:
MethodDispacherInterceptor
- Acts like a 'switch case' that delegates the call to the appropriate method.
- Overrides:
invoke
in class MethodDispacherInterceptor
- Throws:
Throwable
Copyright © 2008 JBoss, a division of Red Hat. All Rights Reserved.