Interface CommonContextPersister
-
- All Known Implementing Classes:
XStreamQueuePersisterImpl
@Internal public interface CommonContextPersister
Classes implementing this interface of peristence for common contexts.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description @NotNull 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(@NotNull CommonContextMap.ContextWithMetadata context)
-
-
-
Method Detail
-
load
@NotNull @NotNull CommonContextMap.ContextWithMetadata load(@NotNull @NotNull ResultKey resultKey) throws FileNotFoundException
- Throws:
FileNotFoundException
-
save
void save(@NotNull @NotNull CommonContextMap.ContextWithMetadata context)
-
remove
void remove(ResultKey resultKey)
-
loadAll
@NotNull @NotNull Stream<CommonContextMap.ContextWithMetadata> loadAll()
Lazily loads all stored objects and removes files from storage.
-
-