public interface DataPersistenceProvider
Modifier and Type | Method and Description |
---|---|
void |
deleteMessages(long sequenceNumber)
Deletes journal entries up to the given sequence number.
|
void |
deleteSnapshots(akka.persistence.SnapshotSelectionCriteria criteria)
Deletes snapshots based on the given criteria.
|
long |
getLastSequenceNumber()
Returns the last sequence number contained in the journal.
|
boolean |
isRecoveryApplicable()
Returns whether or not persistence recovery is applicable/enabled.
|
<T> void |
persist(T entry,
akka.japi.Procedure<T> procedure)
Persists an entry to the applicable journal synchronously.
|
<T> void |
persistAsync(T entry,
akka.japi.Procedure<T> procedure)
Persists an entry to the applicable journal asynchronously.
|
void |
saveSnapshot(Object snapshot)
Saves a snapshot.
|
boolean isRecoveryApplicable()
<T> void persist(T entry, akka.japi.Procedure<T> procedure)
T
- the type of the journal entryentry
- the journal entry to persistprocedure
- the callback when persistence is complete<T> void persistAsync(T entry, akka.japi.Procedure<T> procedure)
T
- the type of the journal entryentry
- the journal entry to persistprocedure
- the callback when persistence is completevoid saveSnapshot(Object snapshot)
snapshot
- the snapshot object to savevoid deleteSnapshots(akka.persistence.SnapshotSelectionCriteria criteria)
criteria
- the search criteriavoid deleteMessages(long sequenceNumber)
sequenceNumber
- the sequence numberlong getLastSequenceNumber()
Copyright © 2019 OpenDaylight. All rights reserved.