@NotThreadSafe public class XStreamQueuePersisterImpl extends Object implements CommonContextPersister
Constructor and Description |
---|
XStreamQueuePersisterImpl(com.thoughtworks.xstream.XStream xStream,
File serverStateDirectory) |
Modifier and Type | Method and Description |
---|---|
CommonContextMap.ContextWithMetadata |
load(ResultKey resultKey) |
Stream<CommonContextMap.ContextWithMetadata> |
loadAndRemoveAll()
Lazily loads all stored objects and removes files from storage.
|
void |
remove(ResultKey resultKey) |
void |
save(CommonContextMap.ContextWithMetadata context) |
public XStreamQueuePersisterImpl(com.thoughtworks.xstream.XStream xStream, File serverStateDirectory)
public void save(@NotNull CommonContextMap.ContextWithMetadata context)
save
in interface CommonContextPersister
@NotNull public CommonContextMap.ContextWithMetadata load(@NotNull ResultKey resultKey)
load
in interface CommonContextPersister
@NotNull public Stream<CommonContextMap.ContextWithMetadata> loadAndRemoveAll()
CommonContextPersister
loadAndRemoveAll
in interface CommonContextPersister
public void remove(ResultKey resultKey)
remove
in interface CommonContextPersister
Copyright © 2020 Atlassian Software Systems Pty Ltd. All rights reserved.