Interface OCacheEntry
- All Superinterfaces:
AutoCloseable,Closeable
- All Known Implementing Classes:
OCacheEntryChanges,OCacheEntryImpl
- Since:
- 7/23/13
- Author:
- Andrey Lomakin (a.lomakin-at-orientdb.com)
-
Method Summary
Modifier and TypeMethodDescriptionbooleanvoidvoidvoidvoidvoidbooleanfreeze()longgetNext()intgetPrev()intvoidbooleanbooleanisAlive()booleanisDead()booleanisFrozen()booleanDEBUG only !!booleanbooleanvoidmakeDead()voidvoidvoidvoidvoidsetContainer(LRUList lruList) voidsetEndLSN(OLogSequenceNumber endLSN) voidvoidsetNext(OCacheEntry next) voidsetPrev(OCacheEntry prev)
-
Method Details
-
getCachePointer
OCachePointer getCachePointer() -
clearCachePointer
void clearCachePointer() -
getFileId
long getFileId() -
getPageIndex
int getPageIndex() -
acquireExclusiveLock
void acquireExclusiveLock() -
releaseExclusiveLock
void releaseExclusiveLock() -
getUsagesCount
int getUsagesCount() -
incrementUsages
void incrementUsages() -
isLockAcquiredByCurrentThread
boolean isLockAcquiredByCurrentThread()DEBUG only !!- Returns:
- Whether lock acquired on current entry
-
decrementUsages
void decrementUsages() -
getChanges
OWALChanges getChanges() -
getEndLSN
OLogSequenceNumber getEndLSN() -
getInitialLSN
OLogSequenceNumber getInitialLSN() -
setInitialLSN
-
setEndLSN
-
acquireEntry
boolean acquireEntry() -
releaseEntry
void releaseEntry() -
isReleased
boolean isReleased() -
isAlive
boolean isAlive() -
freeze
boolean freeze() -
isFrozen
boolean isFrozen() -
makeDead
void makeDead() -
isDead
boolean isDead() -
getNext
OCacheEntry getNext() -
getPrev
OCacheEntry getPrev() -
setPrev
-
setNext
-
setContainer
-
getContainer
LRUList getContainer() -
isNewlyAllocatedPage
boolean isNewlyAllocatedPage() -
markAllocated
void markAllocated() -
clearAllocationFlag
void clearAllocationFlag() -
insideCache
boolean insideCache() -
getPageKey
PageKey getPageKey()
-