Package com.atlassian.bamboo.persister
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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidcleanStorage()Remove all persisted objectsVload(K key)Load object from the storageList<Pair<K,V>>loadAll()Loads all stored objects.@NotNull List<Pair<K,V>>loadAndRemoveAll()Loads all stored objects and removes files from storage.voidremove(K key)Remove object identified by key from the storagevoidsave(V objectToBePersisted, boolean saveEvenIfFileExists)Save an object in the storage
-
-
-
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 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.
-
-