org.infinispan.interceptors
Class BaseTransactionalContextInterceptor
java.lang.Object
org.infinispan.commands.AbstractVisitor
org.infinispan.interceptors.base.CommandInterceptor
org.infinispan.interceptors.BaseTransactionalContextInterceptor
- All Implemented Interfaces:
- Visitor
- Direct Known Subclasses:
- InvocationContextInterceptor, NotificationInterceptor, TxInterceptor
public abstract class BaseTransactionalContextInterceptor
- extends CommandInterceptor
Class providing some base functionality around manipulating transactions and global transactions withing invocation
contexts.
- Since:
- 4.0
- Author:
- Manik Surtani
Methods inherited from class org.infinispan.commands.AbstractVisitor |
visitClearCommand, visitCollection, visitCommitCommand, visitEvictCommand, visitGetKeyValueCommand, visitInvalidateCommand, visitPrepareCommand, visitPutKeyValueCommand, visitPutMapCommand, visitRemoveCommand, visitReplaceCommand, visitRollbackCommand, visitSizeCommand |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
txTable
protected TransactionTable txTable
txManager
protected TransactionManager txManager
BaseTransactionalContextInterceptor
public BaseTransactionalContextInterceptor()
injectDependencies
public void injectDependencies(TransactionTable txTable,
TransactionManager txManager)
setTransactionalContext
protected void setTransactionalContext(Transaction tx,
GlobalTransaction gtx,
TransactionContext tCtx,
InvocationContext ctx)
isRollingBack
protected boolean isRollingBack(Transaction tx)
- Returns true if transaction is rolling back, false otherwise
Copyright © 2009 JBoss, a division of Red Hat. All Rights Reserved.