public class BlockMgrReadonly extends BlockMgrWrapper
| Constructor and Description |
|---|
BlockMgrReadonly(BlockMgr blockMgr) |
| Modifier and Type | Method and Description |
|---|---|
Block |
allocate(int blockSize)
Allocate an uninitialized block - writable - call only inside a update sequence.
|
void |
beginUpdate()
Start of update
|
void |
endUpdate()
Completion of update
|
void |
free(Block block)
Announce a block is no longer in use (i.e it's now freed)
|
Block |
getWrite(long id)
Fetch a block, use for write and read - only inside "update"
|
void |
overwrite(Block block)
Replace the contents of a block slot with new contents.
|
Block |
promote(Block block)
Promote to writable : it's OK to promote an already writable block
|
String |
toString() |
void |
write(Block block)
Write a block back - it still needs releasing.
|
allocLimit, beginRead, close, endRead, getLabel, getRead, getWrapped, isClosed, isEmpty, release, resetAlloc, sync, syncForce, validpublic BlockMgrReadonly(BlockMgr blockMgr)
public void beginUpdate()
BlockMgrbeginUpdate in interface BlockMgrbeginUpdate in class BlockMgrWrapperpublic void endUpdate()
BlockMgrendUpdate in interface BlockMgrendUpdate in class BlockMgrWrapperpublic Block allocate(int blockSize)
BlockMgrallocate in interface BlockMgrallocate in class BlockMgrWrapperpublic Block getWrite(long id)
BlockMgrgetWrite in interface BlockMgrgetWrite in class BlockMgrWrapperpublic Block promote(Block block)
BlockMgrpromote in interface BlockMgrpromote in class BlockMgrWrapperpublic void write(Block block)
BlockMgrwrite in interface BlockMgrwrite in class BlockMgrWrapperpublic void overwrite(Block block)
BlockMgroverwrite in interface BlockMgroverwrite in class BlockMgrWrapperpublic void free(Block block)
BlockMgrfree in interface BlockMgrfree in class BlockMgrWrapperpublic String toString()
toString in class BlockMgrWrapperLicensed under the Apache License, Version 2.0