public class ReuseListImpl extends PagesList implements ReuseList
PagesList.StripebucketsSize, changed, name| Constructor and Description |
|---|
ReuseListImpl(int cacheId,
String name,
PageMemory pageMem,
IgniteWriteAheadLogManager wal,
long metaPageId,
boolean initNew) |
| Modifier and Type | Method and Description |
|---|---|
void |
addForRecycle(ReuseBag bag) |
protected boolean |
casBucket(int bucket,
PagesList.Stripe[] exp,
PagesList.Stripe[] upd) |
protected PagesList.Stripe[] |
getBucket(int bucket) |
protected boolean |
isReuseBucket(int bucket) |
long |
recycledPagesCount() |
long |
takeRecycledPage() |
String |
toString() |
init, put, removeDataPage, saveMetadata, storedPagesCount, takeEmptyPageacquirePage, allocatePage, allocatePageNoReuse, groupId, init, needWalDeltaRecord, onBeforeReadLock, onBeforeWriteLock, onReadLock, onReadUnlock, onWriteLock, onWriteUnlock, pageSize, randomInt, read, read, readLock, readUnlock, recyclePage, releasePage, tryWriteLock, write, write, write, write, writeLock, writeUnlock, writeUnlockpublic ReuseListImpl(int cacheId,
String name,
PageMemory pageMem,
IgniteWriteAheadLogManager wal,
long metaPageId,
boolean initNew)
throws IgniteCheckedException
cacheId - Cache ID.name - Name (for debug purpose).pageMem - Page memory.wal - Write ahead log manager.metaPageId - Metadata page ID.initNew - True if new metadata should be initialized.IgniteCheckedException - If failed.protected boolean isReuseBucket(int bucket)
isReuseBucket in class PagesListbucket - Bucket index.true If it is a reuse bucket.public void addForRecycle(ReuseBag bag) throws IgniteCheckedException
addForRecycle in interface ReuseListbag - Reuse bag.IgniteCheckedException - If failed.public long takeRecycledPage()
throws IgniteCheckedException
takeRecycledPage in interface ReuseList0 if none available.IgniteCheckedException - If failed.public long recycledPagesCount()
throws IgniteCheckedException
recycledPagesCount in interface ReuseListIgniteCheckedException - If failed.protected PagesList.Stripe[] getBucket(int bucket)
protected boolean casBucket(int bucket,
PagesList.Stripe[] exp,
PagesList.Stripe[] upd)
Follow @ApacheIgnite
Ignite Fabric : ver. 2.4.0 Release Date : March 5 2018