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
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.
equals
public boolean equals(Object o)
- Overrides:
equals
in class Object
hashCode
public int hashCode()
- Overrides:
hashCode
in class Object
toString
public String toString()
- Overrides:
toString
in class Object
Copyright © 2011 JBoss, a division of Red Hat. All Rights Reserved.