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 TypeMethodDescriptionvoid
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 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 aChainState
in the storage -
remove
RemoveChainState
from the storage.- Parameters:
key
-
-
appendToJournal
void appendToJournal(@NotNull @NotNull PlanResultKey key, @NotNull @NotNull ChainStateJournalEntry journalEntry) Append to journal for a key.
-