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.ContextWithMetadata
load(@NotNull ResultKey resultKey)
@NotNull Stream<CommonContextMap.ContextWithMetadata>
loadAll()
Lazily loads all stored objects and removes files from storage.void
remove(ResultKey resultKey)
void
save(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:
save
in interfaceCommonContextPersister
-
load
@NotNull public CommonContextMap.ContextWithMetadata load(@NotNull @NotNull ResultKey resultKey) throws FileNotFoundException
- Specified by:
load
in interfaceCommonContextPersister
- Throws:
FileNotFoundException
-
loadAll
@NotNull public @NotNull Stream<CommonContextMap.ContextWithMetadata> loadAll()
Description copied from interface:CommonContextPersister
Lazily loads all stored objects and removes files from storage.- Specified by:
loadAll
in interfaceCommonContextPersister
-
remove
public void remove(ResultKey resultKey)
- Specified by:
remove
in interfaceCommonContextPersister
-
-