@Internal
public interface XStreamObjectPersister<K extends Key,V>
Modifier and Type | Method and Description |
---|---|
void |
cleanStorage()
Remove all persisted objects
|
V |
load(K key)
Load object from the storage
|
Iterable<Pair<K,V>> |
loadAndRemoveAll()
Lazily 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
CurrentlyBuilding in the storage |
@NotNull V load(@NotNull K key)
void save(@NotNull V objectToBePersisted, boolean saveEvenIfFileExists)
CurrentlyBuilding
in the storagevoid remove(@NotNull K key)
void cleanStorage()
Copyright © 2019 Atlassian Software Systems Pty Ltd. All rights reserved.