org.infinispan.transaction.xa
Class LocalTransaction
java.lang.Object
org.infinispan.transaction.xa.AbstractCacheTransaction
org.infinispan.transaction.xa.LocalTransaction
- All Implemented Interfaces:
- CacheTransaction
public class LocalTransaction
- extends AbstractCacheTransaction
- Since:
- 4.2
- Author:
- Mircea.Markus@jboss.com
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LocalTransaction
public LocalTransaction(Transaction transaction,
GlobalTransaction tx)
addModification
public void addModification(WriteCommand mod)
hasRemoteLocksAcquired
public boolean hasRemoteLocksAcquired(List<Address> leavers)
locksAcquired
public void locksAcquired(Collection<Address> nodes)
getRemoteLocksAcquired
public Collection<Address> getRemoteLocksAcquired()
markForRollback
public void markForRollback()
isMarkedForRollback
public boolean isMarkedForRollback()
getTransaction
public Transaction getTransaction()
getLookedUpEntries
public BidirectionalMap<Object,CacheEntry> getLookedUpEntries()
- Specified by:
getLookedUpEntries
in interface CacheTransaction
- Overrides:
getLookedUpEntries
in class AbstractCacheTransaction
putLookedUpEntry
public void putLookedUpEntry(Object key,
CacheEntry e)
isReadOnly
public boolean isReadOnly()
setXid
public void setXid(Xid xid)
getXid
public Xid getXid()
isEnlisted
public boolean isEnlisted()
- As per the JTA spec, XAResource.start is called on enlistment. That method also sets the xid for this local
transaction.
Copyright © 2010 JBoss, a division of Red Hat. All Rights Reserved.