@NotThreadSafe public final class TempBlockMeta extends AbstractBlockMeta
mBlockId, mDir
Constructor and Description |
---|
TempBlockMeta(long sessionId,
long blockId,
long initialBlockSize,
StorageDir dir)
Creates a new instance of
TempBlockMeta . |
Modifier and Type | Method and Description |
---|---|
long |
getBlockSize() |
String |
getCommitPath() |
String |
getPath() |
long |
getSessionId() |
void |
setBlockSize(long newSize) |
commitPath, getBlockId, getBlockLocation, getParentDir, tempPath
public TempBlockMeta(long sessionId, long blockId, long initialBlockSize, StorageDir dir)
TempBlockMeta
.sessionId
- the session idblockId
- the block idinitialBlockSize
- initial size of this block in bytesdir
- StorageDir
of this temp block belonging topublic long getBlockSize()
getBlockSize
in class AbstractBlockMeta
public String getPath()
getPath
in class AbstractBlockMeta
public String getCommitPath()
public long getSessionId()
public void setBlockSize(long newSize)
newSize
- block size to useCopyright © 2023. All Rights Reserved.