@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 |
---|---|
CommonContext |
load(ResultKey resultKey) |
Iterable<CommonContext> |
loadAndRemoveAll()
Lazily loads all stored objects and removes files from storage.
|
void |
remove(ResultKey resultKey) |
void |
save(CommonContext context) |
public XStreamQueuePersisterImpl(com.thoughtworks.xstream.XStream xStream, File serverStateDirectory)
public void save(@NotNull CommonContext context)
save
in interface CommonContextPersister
@NotNull public CommonContext load(@NotNull ResultKey resultKey)
load
in interface CommonContextPersister
@NotNull public Iterable<CommonContext> loadAndRemoveAll()
CommonContextPersister
loadAndRemoveAll
in interface CommonContextPersister
public void remove(ResultKey resultKey)
remove
in interface CommonContextPersister
Copyright © 2016 Atlassian Software Systems Pty Ltd. All rights reserved.