Interface StateStore

    • Method Detail

      • name

        String name()
        The name of this store.
        Returns:
        the storage name
      • flush

        void flush()
        Flush any cached data
      • close

        void close()
        Close the storage engine. Note that this function needs to be idempotent since it may be called several times on the same state store.

        Users only need to implement this function but should NEVER need to call this api explicitly as it will be called by the library automatically when necessary

      • persistent

        boolean persistent()
        Return if the storage is persistent or not.
        Returns:
        true if the storage is persistent—false otherwise
      • isOpen

        boolean isOpen()
        Is this store open for reading and writing
        Returns:
        true if the store is open