Class XStreamQueuePersisterImpl
- java.lang.Object
-
- com.atlassian.bamboo.v2.build.queue.queues.XStreamQueuePersisterImpl
-
- All Implemented Interfaces:
CommonContextPersister
@NotThreadSafe public class XStreamQueuePersisterImpl extends Object implements CommonContextPersister
-
-
Constructor Summary
Constructors Constructor Description XStreamQueuePersisterImpl(com.thoughtworks.xstream.XStream xStream, File serverStateDirectory)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CommonContextMap.ContextWithMetadataload(@NotNull ResultKey resultKey)@NotNull Stream<CommonContextMap.ContextWithMetadata>loadAll()Lazily loads all stored objects and removes files from storage.voidremove(ResultKey resultKey)voidsave(CommonContextMap.ContextWithMetadata context)
-
-
-
Constructor Detail
-
XStreamQueuePersisterImpl
public XStreamQueuePersisterImpl(com.thoughtworks.xstream.XStream xStream, File serverStateDirectory)
-
-
Method Detail
-
save
public void save(@NotNull CommonContextMap.ContextWithMetadata context)- Specified by:
savein interfaceCommonContextPersister
-
load
@NotNull public CommonContextMap.ContextWithMetadata load(@NotNull @NotNull ResultKey resultKey) throws FileNotFoundException
- Specified by:
loadin interfaceCommonContextPersister- Throws:
FileNotFoundException
-
loadAll
@NotNull public @NotNull Stream<CommonContextMap.ContextWithMetadata> loadAll()
Description copied from interface:CommonContextPersisterLazily loads all stored objects and removes files from storage.- Specified by:
loadAllin interfaceCommonContextPersister
-
remove
public void remove(ResultKey resultKey)
- Specified by:
removein interfaceCommonContextPersister
-
-