Package org.dizitart.no2.store
Interface StoreConfig
-
public interface StoreConfigRepresents 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 voidaddStoreEventListener(StoreEventListener listener)Adds aStoreEventListenerto the store configuration.StringfilePath()Gets the file path of the store.default booleanisInMemory()Checks if the store is in-memory.BooleanisReadOnly()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 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.
-
-