Package org.dizitart.no2.mvstore
Class MVStoreConfig
- java.lang.Object
-
- org.dizitart.no2.mvstore.MVStoreConfig
-
- All Implemented Interfaces:
StoreConfig
public class MVStoreConfig extends Object implements StoreConfig
Configuration class for MVStore.- Since:
- 4.0
- Author:
- Anindya Chatterjee
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddStoreEventListener(StoreEventListener listener)booleanautoCommit()Indicates whether auto-commit mode is enabled for the MVStore.intautoCommitBufferSize()The size of the buffer used for auto-commit operations.booleanautoCompact()Sets a value indicating whether the MVStore should automatically compact itself when it is closed.intcacheConcurrency()The number of threads that can concurrently access the MVStore cache.intcacheSize()The size of the cache (in KB) used by the MVStore.MVStoreConfigclone()Creates and returns a copy of this object.booleancompress()Indicates whether the MVStore should compress data or not.booleancompressHigh()Indicates whether to use high compression for data blocks.char[]encryptionKey()The encryption key to be used for encrypting and decrypting the data.Set<StoreEventListener>eventListeners()The set of event listeners for the MVStore.StringfilePath()The file path of the MVStore file.org.h2.mvstore.FileStore<?>fileStore()The file store used by the MVStore.BooleanisReadOnly()A flag indicating whether the MVStore should be opened in read-only mode.intpageSplitSize()Sets the page split size for the MVStore.booleanrecoveryMode()Indicates whether the MVStore should be opened in recovery mode or not.-
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.dizitart.no2.store.StoreConfig
isInMemory
-
-
-
-
Method Detail
-
addStoreEventListener
public void addStoreEventListener(StoreEventListener listener)
- Specified by:
addStoreEventListenerin interfaceStoreConfig
-
clone
public MVStoreConfig clone()
Creates and returns a copy of this object.- Returns:
- a clone of this instance.
-
eventListeners
public Set<StoreEventListener> eventListeners()
The set of event listeners for the MVStore.
-
filePath
public String filePath()
The file path of the MVStore file.- Specified by:
filePathin interfaceStoreConfig
-
autoCommitBufferSize
public int autoCommitBufferSize()
The size of the buffer used for auto-commit operations.
-
encryptionKey
public char[] encryptionKey()
The encryption key to be used for encrypting and decrypting the data.
-
isReadOnly
public Boolean isReadOnly()
A flag indicating whether the MVStore should be opened in read-only mode.- Specified by:
isReadOnlyin interfaceStoreConfig
-
compress
public boolean compress()
Indicates whether the MVStore should compress data or not.
-
compressHigh
public boolean compressHigh()
Indicates whether to use high compression for data blocks.
-
autoCommit
public boolean autoCommit()
Indicates whether auto-commit mode is enabled for the MVStore.
-
autoCompact
public boolean autoCompact()
Sets a value indicating whether the MVStore should automatically compact itself when it is closed.
-
recoveryMode
public boolean recoveryMode()
Indicates whether the MVStore should be opened in recovery mode or not.
-
cacheSize
public int cacheSize()
The size of the cache (in KB) used by the MVStore.
-
cacheConcurrency
public int cacheConcurrency()
The number of threads that can concurrently access the MVStore cache.
-
pageSplitSize
public int pageSplitSize()
Sets the page split size for the MVStore.
-
fileStore
public org.h2.mvstore.FileStore<?> fileStore()
The file store used by the MVStore.
-
-