Interface StoreConfig


  • public interface StoreConfig
    Represents the configuration interface of a NitriteStore.
    Since:
    4.0
    Author:
    Anindya Chatterjee.
    • 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 a StoreEventListener 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.