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
ConstructorDescriptionXStreamQueuePersisterImpl
(com.thoughtworks.xstream.XStream xStream, File serverStateDirectory) -
Method Summary
Modifier and TypeMethodDescription@NotNull Stream<CommonContextMap.ContextWithMetadata>
loadAll()
Lazily loads all stored objects and removes files from storage.void
void
save
(CommonContextMap.ContextWithMetadata context)
-
Constructor Details
-
XStreamQueuePersisterImpl
public XStreamQueuePersisterImpl(com.thoughtworks.xstream.XStream xStream, File serverStateDirectory)
-
-
Method Details
-
save
- Specified by:
save
in interfaceCommonContextPersister
-
load
@NotNull public CommonContextMap.ContextWithMetadata load(@NotNull @NotNull ResultKey resultKey) throws FileNotFoundException - Specified by:
load
in interfaceCommonContextPersister
- Throws:
FileNotFoundException
-
loadAll
Description copied from interface:CommonContextPersister
Lazily loads all stored objects and removes files from storage.- Specified by:
loadAll
in interfaceCommonContextPersister
-
remove
- Specified by:
remove
in interfaceCommonContextPersister
-