public abstract class LocalTransaction extends AbstractCacheTransaction
RemoteTransaction
.Modifier and Type | Field and Description |
---|---|
protected Set<Object> |
readKeys |
affectedKeys, backupKeyLocks, lockedKeys, lookedUpEntries, modifications, prepared, tx
Constructor and Description |
---|
LocalTransaction(Transaction transaction,
GlobalTransaction tx,
boolean implicitTransaction,
int viewId) |
Modifier and Type | Method and Description |
---|---|
void |
addModification(WriteCommand mod) |
void |
addReadKey(Object key) |
void |
clearRemoteLocksAcquired() |
boolean |
equals(Object o) |
Map<Object,CacheEntry> |
getLookedUpEntries() |
Collection<Address> |
getRemoteLocksAcquired() |
Transaction |
getTransaction() |
int |
hashCode() |
abstract boolean |
isEnlisted() |
boolean |
isImplicitTransaction() |
boolean |
isMarkedForRollback() |
boolean |
isReadOnly() |
boolean |
keyRead(Object key) |
void |
locksAcquired(Collection<Address> nodes) |
void |
markForRollback(boolean markForRollback) |
void |
putLookedUpEntries(Map<Object,CacheEntry> entries) |
void |
putLookedUpEntry(Object key,
CacheEntry e) |
void |
setModifications(List<WriteCommand> modifications) |
String |
toString() |
addAffectedKey, addAllAffectedKeys, addBackupLockForKey, clearLockedKeys, clearLookedUpEntries, getAffectedKeys, getGlobalTransaction, getLockedKeys, getModifications, getUpdatedEntryVersions, getViewId, lookupEntry, notifyOnTransactionFinished, ownsLock, registerLockedKey, removeLookedUpEntry, setModifications, setUpdatedEntryVersions, waitForLockRelease
public LocalTransaction(Transaction transaction, GlobalTransaction tx, boolean implicitTransaction, int viewId)
public void addModification(WriteCommand mod)
public void locksAcquired(Collection<Address> nodes)
public Collection<Address> getRemoteLocksAcquired()
public void clearRemoteLocksAcquired()
public void markForRollback(boolean markForRollback)
public final boolean isMarkedForRollback()
public Transaction getTransaction()
public Map<Object,CacheEntry> getLookedUpEntries()
getLookedUpEntries
in interface CacheTransaction
getLookedUpEntries
in class AbstractCacheTransaction
public boolean isImplicitTransaction()
public void putLookedUpEntry(Object key, CacheEntry e)
public void putLookedUpEntries(Map<Object,CacheEntry> entries)
public boolean isReadOnly()
public abstract boolean isEnlisted()
public void setModifications(List<WriteCommand> modifications)
public void addReadKey(Object key)
addReadKey
in interface CacheTransaction
addReadKey
in class AbstractCacheTransaction
public boolean keyRead(Object key)
keyRead
in interface CacheTransaction
keyRead
in class AbstractCacheTransaction
Copyright © 2012 JBoss by Red Hat. All Rights Reserved.