public interface CacheTransaction
Modifier and Type | Method and Description |
---|---|
void |
addBackupLockForKey(Object key) |
void |
clearLockedKeys() |
void |
clearLookedUpEntries() |
GlobalTransaction |
getGlobalTransaction()
Returns the transaction identifier.
|
Set<Object> |
getLockedKeys() |
Map<Object,CacheEntry> |
getLookedUpEntries() |
List<WriteCommand> |
getModifications()
Returns the modifications visible within the current transaction.
|
EntryVersionsMap |
getUpdatedEntryVersions() |
int |
getViewId() |
CacheEntry |
lookupEntry(Object key) |
void |
notifyOnTransactionFinished() |
boolean |
ownsLock(Object key) |
void |
putLookedUpEntries(Map<Object,CacheEntry> entries) |
void |
putLookedUpEntry(Object key,
CacheEntry e) |
void |
removeLookedUpEntry(Object key) |
void |
setUpdatedEntryVersions(EntryVersionsMap updatedEntryVersions) |
boolean |
waitForLockRelease(Object key,
long lockAcquisitionTimeout) |
GlobalTransaction getGlobalTransaction()
List<WriteCommand> getModifications()
CacheEntry lookupEntry(Object key)
Map<Object,CacheEntry> getLookedUpEntries()
void putLookedUpEntry(Object key, CacheEntry e)
void putLookedUpEntries(Map<Object,CacheEntry> entries)
void removeLookedUpEntry(Object key)
void clearLookedUpEntries()
boolean ownsLock(Object key)
void clearLockedKeys()
int getViewId()
void addBackupLockForKey(Object key)
void notifyOnTransactionFinished()
boolean waitForLockRelease(Object key, long lockAcquisitionTimeout) throws InterruptedException
EntryVersionsMap getUpdatedEntryVersions()
void setUpdatedEntryVersions(EntryVersionsMap updatedEntryVersions)
Copyright © 2012 JBoss, a division of Red Hat. All Rights Reserved.