Package org.dizitart.no2.mvstore
Class MVStoreModule
- java.lang.Object
-
- org.dizitart.no2.mvstore.MVStoreModule
-
- All Implemented Interfaces:
NitriteModule
,StoreModule
public class MVStoreModule extends Object implements StoreModule
A Nitrite module that provides a Nitrite store implementation using H2 MVStore.- Since:
- 4.0
- Author:
- Anindya Chatterjee
- See Also:
NitriteStore
-
-
Constructor Summary
Constructors Constructor Description MVStoreModule(String path)
Constructs a new instance ofMVStoreModule
with the specified file path.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description NitriteStore<?>
getStore()
Returns a new instance ofNitriteStore
with the configuredStoreConfig
.Set<NitritePlugin>
plugins()
static MVStoreModuleBuilder
withConfig()
Returns a new instance ofMVStoreModuleBuilder
to configure the MVStore module.
-
-
-
Constructor Detail
-
MVStoreModule
public MVStoreModule(String path)
Constructs a new instance ofMVStoreModule
with the specified file path.- Parameters:
path
- the file path for the MVStore database.
-
-
Method Detail
-
plugins
public Set<NitritePlugin> plugins()
- Specified by:
plugins
in interfaceNitriteModule
-
withConfig
public static MVStoreModuleBuilder withConfig()
Returns a new instance ofMVStoreModuleBuilder
to configure the MVStore module.- Returns:
- a new instance of
MVStoreModuleBuilder
.
-
getStore
public NitriteStore<?> getStore()
Returns a new instance ofNitriteStore
with the configuredStoreConfig
.- Specified by:
getStore
in interfaceStoreModule
- Returns:
- a new instance of
NitriteStore
.
-
-