Class OCacheEntryChanges
java.lang.Object
com.orientechnologies.orient.core.storage.impl.local.paginated.atomicoperations.OCacheEntryChanges
- All Implemented Interfaces:
OCacheEntry,Closeable,AutoCloseable
Created by tglman on 23/06/16.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final OWALChangesprotected OCacheEntryprotected booleanprotected boolean -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanvoidvoidvoidvoidvoidclose()voidbooleanfreeze()longgetNext()intgetPrev()intvoidbooleanbooleanisAlive()booleanisDead()booleanisFrozen()booleanDEBUG only !!booleanbooleanvoidmakeDead()voidvoidvoidvoidvoidsetContainer(LRUList lruList) voidsetDelegate(OCacheEntry delegate) voidsetEndLSN(OLogSequenceNumber endLSN) voidvoidsetNext(OCacheEntry next) voidsetPrev(OCacheEntry prev)
-
Field Details
-
delegate
-
changes
-
isNew
protected boolean isNew -
verifyCheckSum
protected boolean verifyCheckSum
-
-
Constructor Details
-
OCacheEntryChanges
-
-
Method Details
-
getCachePointer
- Specified by:
getCachePointerin interfaceOCacheEntry
-
clearCachePointer
public void clearCachePointer()- Specified by:
clearCachePointerin interfaceOCacheEntry
-
getFileId
public long getFileId()- Specified by:
getFileIdin interfaceOCacheEntry
-
getPageIndex
public int getPageIndex()- Specified by:
getPageIndexin interfaceOCacheEntry
-
acquireExclusiveLock
public void acquireExclusiveLock()- Specified by:
acquireExclusiveLockin interfaceOCacheEntry
-
releaseExclusiveLock
public void releaseExclusiveLock()- Specified by:
releaseExclusiveLockin interfaceOCacheEntry
-
getUsagesCount
public int getUsagesCount()- Specified by:
getUsagesCountin interfaceOCacheEntry
-
incrementUsages
public void incrementUsages()- Specified by:
incrementUsagesin interfaceOCacheEntry
-
isLockAcquiredByCurrentThread
public boolean isLockAcquiredByCurrentThread()Description copied from interface:OCacheEntryDEBUG only !!- Specified by:
isLockAcquiredByCurrentThreadin interfaceOCacheEntry- Returns:
- Whether lock acquired on current entry
-
decrementUsages
public void decrementUsages()- Specified by:
decrementUsagesin interfaceOCacheEntry
-
getChanges
- Specified by:
getChangesin interfaceOCacheEntry
-
setDelegate
-
getDelegate
-
getEndLSN
- Specified by:
getEndLSNin interfaceOCacheEntry
-
setEndLSN
- Specified by:
setEndLSNin interfaceOCacheEntry
-
acquireEntry
public boolean acquireEntry()- Specified by:
acquireEntryin interfaceOCacheEntry
-
releaseEntry
public void releaseEntry()- Specified by:
releaseEntryin interfaceOCacheEntry
-
isReleased
public boolean isReleased()- Specified by:
isReleasedin interfaceOCacheEntry
-
isAlive
public boolean isAlive()- Specified by:
isAlivein interfaceOCacheEntry
-
freeze
public boolean freeze()- Specified by:
freezein interfaceOCacheEntry
-
isFrozen
public boolean isFrozen()- Specified by:
isFrozenin interfaceOCacheEntry
-
makeDead
public void makeDead()- Specified by:
makeDeadin interfaceOCacheEntry
-
isDead
public boolean isDead()- Specified by:
isDeadin interfaceOCacheEntry
-
isNewlyAllocatedPage
public boolean isNewlyAllocatedPage()- Specified by:
isNewlyAllocatedPagein interfaceOCacheEntry
-
markAllocated
public void markAllocated()- Specified by:
markAllocatedin interfaceOCacheEntry
-
clearAllocationFlag
public void clearAllocationFlag()- Specified by:
clearAllocationFlagin interfaceOCacheEntry
-
insideCache
public boolean insideCache()- Specified by:
insideCachein interfaceOCacheEntry
-
getNext
- Specified by:
getNextin interfaceOCacheEntry
-
getPrev
- Specified by:
getPrevin interfaceOCacheEntry
-
setPrev
- Specified by:
setPrevin interfaceOCacheEntry
-
setNext
- Specified by:
setNextin interfaceOCacheEntry
-
setContainer
- Specified by:
setContainerin interfaceOCacheEntry
-
getContainer
- Specified by:
getContainerin interfaceOCacheEntry
-
getInitialLSN
- Specified by:
getInitialLSNin interfaceOCacheEntry
-
setInitialLSN
- Specified by:
setInitialLSNin interfaceOCacheEntry
-
getPageKey
- Specified by:
getPageKeyin interfaceOCacheEntry
-
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Throws:
IOException
-