Interface XStreamObjectPersister<K extends Key,V>

All Known Implementing Classes:
AbstractXStreamPersister, XStreamChainStatePersisterImpl, XStreamCurrentlyBuildingPersisterImpl, XStreamDeploymentInProgressPersisterImpl, XStreamSecureTokenPersister

@Internal public interface XStreamObjectPersister<K extends Key,V>
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Remove all persisted objects
    load(K key)
    Load object from the storage
    Loads all stored objects.
    @NotNull List<Pair<K,V>>
    Loads all stored objects and removes files from storage.
    void
    remove(K key)
    Remove object identified by key from the storage
    void
    save(V objectToBePersisted, boolean saveEvenIfFileExists)
    Save an object in the storage
  • Method Details

    • 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 an object 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 List<Pair<K,V>> loadAndRemoveAll()
      Loads all stored objects and removes files from storage.
    • loadAll

      List<Pair<K,V>> loadAll()
      Loads all stored objects.
      Since:
      9.5