Interface StoreFactory

    • Method Detail

      • setReadOnly

        void setReadOnly​(boolean readOnly)
        Sets whether or not changes to instances returned from this factory are supported. Once marked as read-only, any attempt to change state will throw an IllegalStateException.
        Parameters:
        readOnly - if true, changes are not supported
      • isReadOnly

        boolean isReadOnly()
        Indicates if instances returned from storage are read-only.
        Returns:
        if true, instances only support reads.