Package org.dizitart.no2.store
Interface StoreConfig
-
public interface StoreConfig
Represents the configuration interface of aNitriteStore
.- Since:
- 4.0
- Author:
- Anindya Chatterjee.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description void
addStoreEventListener(StoreEventListener listener)
Adds aStoreEventListener
to the store configuration.String
filePath()
Gets the file path of the store.default boolean
isInMemory()
Checks if the store is in-memory.Boolean
isReadOnly()
Returns a boolean indicating whether the store is read-only or not.
-
-
-
Method Detail
-
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
void addStoreEventListener(StoreEventListener listener)
Adds aStoreEventListener
to 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:
true
if the store is in-memory;false
otherwise.
-
-