Interface ChainStatePersister
-
- All Known Implementing Classes:
ChainStatePersisterImpl
@Internal public interface ChainStatePersisterBean responsible for persistence ofChainStateobjects.- Since:
- 9.5
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidappendToJournal(@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.voidremove(@NotNull PlanResultKey key)RemoveChainStatefrom the storage.voidsave(@NotNull ChainState state)Save aChainStatein 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 aChainStatein the storage
-
remove
void remove(@NotNull @NotNull PlanResultKey key)RemoveChainStatefrom the storage.- Parameters:
key-
-
appendToJournal
void appendToJournal(@NotNull @NotNull PlanResultKey key, @NotNull @NotNull ChainStateJournalEntry journalEntry)Append to journal for a key.
-
-