Interface ChainStatePersister
-
- All Known Implementing Classes:
ChainStatePersisterImpl
@Internal public interface ChainStatePersister
Bean responsible for persistence ofChainState
objects.- Since:
- 9.5
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
appendToJournal(@NotNull PlanResultKey key, @NotNull ChainStateJournalEntry journalEntry)
Append to journal for a key.@NotNull List<Pair<PlanResultKey,ChainState>>
loadAndReplayAll(@NotNull Set<PlanResultKey> chainResultsToRestore)
Loads stored objects matching provided keys and replays the journal on them.void
remove(@NotNull PlanResultKey key)
RemoveChainState
from the storage.void
save(@NotNull ChainState state)
Save aChainState
in the storage
-
-
-
Method Detail
-
loadAndReplayAll
@NotNull @NotNull List<Pair<PlanResultKey,ChainState>> loadAndReplayAll(@NotNull @NotNull Set<PlanResultKey> chainResultsToRestore)
Loads stored objects matching provided keys and replays the journal on them. Removes all other journals.
-
save
void save(@NotNull @NotNull ChainState state)
Save aChainState
in the storage
-
remove
void remove(@NotNull @NotNull PlanResultKey key)
RemoveChainState
from the storage.- Parameters:
key
-
-
appendToJournal
void appendToJournal(@NotNull @NotNull PlanResultKey key, @NotNull @NotNull ChainStateJournalEntry journalEntry)
Append to journal for a key.
-
-