Interface ChainStatePersister
- All Known Implementing Classes:
ChainStatePersisterImpl
@Internal
public interface ChainStatePersister
Bean responsible for persistence of
ChainState objects.- Since:
- 9.5
-
Method Summary
Modifier and TypeMethodDescriptionvoidappendToJournal(@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 Details
-
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
Save aChainStatein the storage -
remove
RemoveChainStatefrom the storage.- Parameters:
key-
-
appendToJournal
void appendToJournal(@NotNull @NotNull PlanResultKey key, @NotNull @NotNull ChainStateJournalEntry journalEntry) Append to journal for a key.
-