Package org.rostore.v2.media
Class MediaHeader
java.lang.Object
org.rostore.v2.media.MediaHeader
This object is stored in the first block of ro-store
Media
.
It is populated from the MediaProperties
.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
PersistsMediaProperties.getBlockSize()
long
PersistsMediaProperties.getCloseUnusedBlocksAfterMillis()
()}long
byte
getMagic()
Provides a magic byte that is used for verificationlong
PersistsMediaProperties.getMaxTotalSize()
void
setBlockSize
(int blockSize) PersistsMediaProperties.getBlockSize()
void
setCloseUnusedBlocksAfterMillis
(long closeUnusedBlocksAfterMillis) PersistsMediaProperties.getCloseUnusedBlocksAfterMillis()
()}void
setCloseUnusedSequencesAfterMillis
(long closeUnusedSequencesAfterMillis) void
setMagic
(byte magic) Sets the magic byte to the header, which will be used for verificationvoid
setMaxTotalSize
(long maxTotalSize) PersistsMediaProperties.getMaxTotalSize()
-
Constructor Details
-
MediaHeader
public MediaHeader()
-
-
Method Details
-
getMagic
public byte getMagic()Provides a magic byte that is used for verification- Returns:
- the magic byte
-
setMagic
public void setMagic(byte magic) Sets the magic byte to the header, which will be used for verification- Parameters:
magic
- the magic byte
-
getMaxTotalSize
public long getMaxTotalSize()PersistsMediaProperties.getMaxTotalSize()
-
setMaxTotalSize
public void setMaxTotalSize(long maxTotalSize) PersistsMediaProperties.getMaxTotalSize()
-
getBlockSize
public int getBlockSize()PersistsMediaProperties.getBlockSize()
-
setBlockSize
public void setBlockSize(int blockSize) PersistsMediaProperties.getBlockSize()
-
getCloseUnusedBlocksAfterMillis
public long getCloseUnusedBlocksAfterMillis()PersistsMediaProperties.getCloseUnusedBlocksAfterMillis()
()} -
setCloseUnusedBlocksAfterMillis
public void setCloseUnusedBlocksAfterMillis(long closeUnusedBlocksAfterMillis) PersistsMediaProperties.getCloseUnusedBlocksAfterMillis()
()} -
getCloseUnusedSequencesAfterMillis
public long getCloseUnusedSequencesAfterMillis() -
setCloseUnusedSequencesAfterMillis
public void setCloseUnusedSequencesAfterMillis(long closeUnusedSequencesAfterMillis)
-