public interface CacheTransaction
Modifier and Type | Method and Description |
---|---|
void |
addBackupLockForKey(Object key) |
void |
addReadKey(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() |
boolean |
keyRead(Object key) |
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)
boolean keyRead(Object key)
void addReadKey(Object key)
Copyright © 2012 JBoss by Red Hat. All Rights Reserved.