org.jboss.cache.interceptors
Class OptimisticInterceptor

java.lang.Object
  |
  +--org.jboss.cache.interceptors.Interceptor
        |
        +--org.jboss.cache.interceptors.OptimisticInterceptor
Direct Known Subclasses:
OptimisticCreateIfNotExistsInterceptor, OptimisticLockingInterceptor, OptimisticNodeInterceptor, OptimisticReplicationInterceptor, OptimisticTxInterceptor, OptimisticValidatorInterceptor

public class OptimisticInterceptor
extends Interceptor

//TODO: MANIK: Javadoc this class

Author:
Manik Surtani (manik@jboss.org)

Field Summary
protected  javax.transaction.TransactionManager txManager
           
protected  TransactionTable txTable
           
 
Constructor Summary
OptimisticInterceptor()
           
 
Method Summary
protected  GlobalTransaction getCurrentTxFromThread()
           
protected  TransactionWorkspace getTransactionWorkspace(GlobalTransaction gtx)
           
 void setCache(TreeCache cache)
           
 
Methods inherited from class org.jboss.cache.interceptors.Interceptor
getNext, invoke, setNext
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

txManager

protected javax.transaction.TransactionManager txManager

txTable

protected TransactionTable txTable
Constructor Detail

OptimisticInterceptor

public OptimisticInterceptor()
Method Detail

setCache

public void setCache(TreeCache cache)
Overrides:
setCache in class Interceptor

getTransactionWorkspace

protected TransactionWorkspace getTransactionWorkspace(GlobalTransaction gtx)
                                                throws CacheException
CacheException

getCurrentTxFromThread

protected GlobalTransaction getCurrentTxFromThread()
                                            throws CacheException
CacheException


Copyright © 1998-2005 JBoss Inc . All Rights Reserved.