Class MediaPropertiesBuilder
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionblockSize
(int blockSize) Sets the block size that will be used by the storagecloseUnusedBlocksAfterMillis
(long closeUnusedBlocksAfterMillis) Sets the time interval in milliseconds after each the unused blocks will be removed from the memory.closeUnusedSequencesAfterMillis
(long closeUnusedSequencesAfterMillis) Sets the time interval in milliseconds after each the unused block sequences will be removed from the memory.int
Provides the block sizelong
Provides the time interval in milliseconds after each the unused blocks will be removed from the memory.long
Gets the time interval in milliseconds after each the unused block sequences will be removed from the memory.long
Provides the total maximum size of the storagemaxTotalSize
(long maxTotalSize) Sets the maximum total size of the storagevoid
setBlockSize
(int blockSize) Sets the block size that will be used by the storagevoid
setCloseUnusedBlocksAfterMillis
(long closeUnusedBlocksAfterMillis) Sets the time interval in milliseconds after each the unused blocks will be removed from the memory.void
setCloseUnusedSequencesAfterMillis
(long closeUnusedSequencesAfterMillis) Sets the time interval in milliseconds after each the unused block sequences will be removed from the memory.void
setMaxTotalSize
(long maxTotalSize) Sets the maximum total size of the storage
-
Constructor Details
-
MediaPropertiesBuilder
public MediaPropertiesBuilder()
-
-
Method Details
-
maxTotalSize
Sets the maximum total size of the storage- Parameters:
maxTotalSize
- the maximum total size in bytes- Returns:
- the builder object
-
blockSize
Sets the block size that will be used by the storageIt should be aligned with the physical memory page in the hosting system to achieve the best alignment and memory usage.
- Parameters:
blockSize
- the block size in bytes- Returns:
- the builder object
-
closeUnusedBlocksAfterMillis
Sets the time interval in milliseconds after each the unused blocks will be removed from the memory.The caching of unused block is only used fo the blocks of CATALOG or KEY types.
- Parameters:
closeUnusedBlocksAfterMillis
- time interval to remove the unused blocks from the memory- Returns:
- the builder object
-
closeUnusedSequencesAfterMillis
Sets the time interval in milliseconds after each the unused block sequences will be removed from the memory.Sequences combine several blocks in one continues data block, which is used in the ro-store controlling structures such as catalogs or key blocks.
- Parameters:
closeUnusedSequencesAfterMillis
- the time interval in milliseconds- Returns:
- the builder object
-
getMaxTotalSize
public long getMaxTotalSize()Provides the total maximum size of the storage- Returns:
- the size in bytes
-
setMaxTotalSize
public void setMaxTotalSize(long maxTotalSize) Sets the maximum total size of the storage- Parameters:
maxTotalSize
- the maximum total size in bytes
-
getBlockSize
public int getBlockSize()Provides the block size- Returns:
- the block size in bytes
-
setBlockSize
public void setBlockSize(int blockSize) Sets the block size that will be used by the storageIt should be aligned with the physical memory page in the hosting system to achieve the best alignment and memory usage.
- Parameters:
blockSize
- the block size in bytes
-
getCloseUnusedBlocksAfterMillis
public long getCloseUnusedBlocksAfterMillis()Provides the time interval in milliseconds after each the unused blocks will be removed from the memory.The caching of unused block is only used fo the blocks of CATALOG or KEY types.
- Returns:
- the time interval in milliseconds
-
setCloseUnusedBlocksAfterMillis
public void setCloseUnusedBlocksAfterMillis(long closeUnusedBlocksAfterMillis) Sets the time interval in milliseconds after each the unused blocks will be removed from the memory.The caching of unused block is only used fo the blocks of CATALOG or KEY types.
- Parameters:
closeUnusedBlocksAfterMillis
- time interval to remove the unused blocks from the memory
-
getCloseUnusedSequencesAfterMillis
public long getCloseUnusedSequencesAfterMillis()Gets the time interval in milliseconds after each the unused block sequences will be removed from the memory.Sequences combine several blocks in one continues data block, which is used in the ro-store controlling structures such as catalogs or key blocks.
- Returns:
- the time interval in milliseconds
-
setCloseUnusedSequencesAfterMillis
public void setCloseUnusedSequencesAfterMillis(long closeUnusedSequencesAfterMillis) Sets the time interval in milliseconds after each the unused block sequences will be removed from the memory.Sequences combine several blocks in one continues data block, which is used in the ro-store controlling structures such as catalogs or key blocks.
- Parameters:
closeUnusedSequencesAfterMillis
- the time interval in milliseconds
-