@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(@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) |
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 @NotNull ResultKey resultKey) throws FileNotFoundException
load
in interface CommonContextPersister
FileNotFoundException
@NotNull public @NotNull Stream<CommonContextMap.ContextWithMetadata> loadAll()
CommonContextPersister
loadAll
in interface CommonContextPersister
public void remove(ResultKey resultKey)
remove
in interface CommonContextPersister
Copyright © 2022 Atlassian Software Systems Pty Ltd. All rights reserved.
View cookie preferences