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 void
cleanStorage()
Remove all persisted objectsV
load(K key)
Load object from the storage@NotNull 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 storagevoid
save(V objectToBePersisted, boolean saveEvenIfFileExists)
SaveCurrentlyBuilding
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)
SaveCurrentlyBuilding
in the storage
-
remove
void remove(@NotNull K key)
Remove object identified by key from the storage
-
cleanStorage
void cleanStorage()
Remove all persisted objects
-
-