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 void
addStoreEventListener(StoreEventListener listener)
boolean
autoCommit()
Indicates whether auto-commit mode is enabled for the MVStore.int
autoCommitBufferSize()
The size of the buffer used for auto-commit operations.boolean
autoCompact()
Sets a value indicating whether the MVStore should automatically compact itself when it is closed.int
cacheConcurrency()
The number of threads that can concurrently access the MVStore cache.int
cacheSize()
The size of the cache (in KB) used by the MVStore.MVStoreConfig
clone()
Creates and returns a copy of this object.boolean
compress()
Indicates whether the MVStore should compress data or not.boolean
compressHigh()
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.String
filePath()
The file path of the MVStore file.org.h2.mvstore.FileStore<?>
fileStore()
The file store used by the MVStore.Boolean
isReadOnly()
A flag indicating whether the MVStore should be opened in read-only mode.int
pageSplitSize()
Sets the page split size for the MVStore.boolean
recoveryMode()
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:
addStoreEventListener
in 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:
filePath
in 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:
isReadOnly
in 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.
-
-