Package org.dizitart.no2.store
Interface StoreConfig
public interface StoreConfig
Represents the configuration interface of a
NitriteStore.- Since:
- 4.0
- Author:
- Anindya Chatterjee.
-
Method Summary
Modifier and TypeMethodDescriptionvoidaddStoreEventListener(StoreEventListener listener) Adds aStoreEventListenerto the store configuration.filePath()Gets the file path of the store.default booleanChecks if the store is in-memory.Returns a boolean indicating whether the store is read-only or not.
-
Method Details
-
filePath
String filePath()Gets the file path of the store.- Returns:
- the file path of the store.
-
isReadOnly
Boolean isReadOnly()Returns a boolean indicating whether the store is read-only or not.- Returns:
- a boolean indicating whether the store is read-only or not
-
addStoreEventListener
Adds aStoreEventListenerto the store configuration. The listener will be notified of any store events.- Parameters:
listener- the listener to add
-
isInMemory
default boolean isInMemory()Checks if the store is in-memory.- Returns:
trueif the store is in-memory;falseotherwise.
-