|
||||||||||
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.OptimisticInterceptor
org.jboss.cache.interceptors.OptimisticCreateIfNotExistsInterceptor
public class OptimisticCreateIfNotExistsInterceptor
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.
Field Summary |
---|
Fields inherited from class org.jboss.cache.interceptors.OptimisticInterceptor |
---|
trace, txManager, txTable |
Fields inherited from class org.jboss.cache.interceptors.Interceptor |
---|
cache, configuration, last, log, next |
Constructor Summary | |
---|---|
OptimisticCreateIfNotExistsInterceptor()
|
Method Summary | |
---|---|
java.lang.Object |
invoke(InvocationContext ctx)
|
void |
setCache(CacheSPI cache)
|
Methods inherited from class org.jboss.cache.interceptors.OptimisticInterceptor |
---|
getGlobalTransaction, getTransactionWorkspace, greedyGetFqns |
Methods inherited from class org.jboss.cache.interceptors.Interceptor |
---|
dumpStatistics, getLast, getNext, getStatisticsEnabled, isActive, isOnePhaseCommitPrepareMehod, isPreparing, isValid, resetStatistics, setLast, setNext, setStatisticsEnabled, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public OptimisticCreateIfNotExistsInterceptor()
Method Detail |
---|
public void setCache(CacheSPI cache)
setCache
in class OptimisticInterceptor
public java.lang.Object invoke(InvocationContext ctx) 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 |