org.jboss.cache.interceptors
Class OptimisticCreateIfNotExistsInterceptor
java.lang.Object
org.jboss.cache.interceptors.Interceptor
org.jboss.cache.interceptors.OptimisticInterceptor
org.jboss.cache.interceptors.OptimisticCreateIfNotExistsInterceptor
- All Implemented Interfaces:
- InterceptorMBean
public class OptimisticCreateIfNotExistsInterceptor
- extends OptimisticInterceptor
Used to create new NodeSPI
instances in the main data structure and then copy it into the
TransactionWorkspace
as WorkspaceNode
s as needed. This is only invoked if nodes needed do not exist
in the underlying structure, they are added and the corresponding WorkspaceNode.isCreated()
would return true to denote that this node has been freshly created in the underlying structure.
- Author:
- Manik Surtani (manik@jboss.org), Steve Woodcock (stevew@jofti.com)
Methods inherited from class org.jboss.cache.interceptors.Interceptor |
dumpStatistics, getLast, getNext, getStatisticsEnabled, isActive, isOnePhaseCommitPrepareMehod, isPreparing, isValid, resetStatistics, setLast, setNext, setStatisticsEnabled, toString |
OptimisticCreateIfNotExistsInterceptor
public OptimisticCreateIfNotExistsInterceptor()
setCache
public void setCache(CacheSPI cache)
- Overrides:
setCache
in class OptimisticInterceptor
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.