Interface XStreamObjectPersister<K extends Key,​V>

    • Method Detail

      • load

        @NotNull
        V load​(@NotNull
               K key)
        Load object from the storage
        Returns:
        object fetched from the storage
      • save

        void save​(@NotNull
                  V objectToBePersisted,
                  boolean saveEvenIfFileExists)
        Save CurrentlyBuilding in the storage
      • remove

        void remove​(@NotNull
                    K key)
        Remove object identified by key from the storage
      • cleanStorage

        void cleanStorage()
        Remove all persisted objects
      • loadAndRemoveAll

        @NotNull
        @NotNull Iterable<Pair<K,​V>> loadAndRemoveAll()
        Lazily loads all stored objects and removes files from storage.