public class NonPersistentDataProvider extends Object implements DataPersistenceProvider
| Constructor and Description |
|---|
NonPersistentDataProvider(ExecuteInSelfActor actor) |
| 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.
|
public NonPersistentDataProvider(ExecuteInSelfActor actor)
public boolean isRecoveryApplicable()
DataPersistenceProviderisRecoveryApplicable in interface DataPersistenceProviderpublic <T> void persist(T entry,
akka.japi.Procedure<T> procedure)
DataPersistenceProviderpersist in interface DataPersistenceProviderT - the type of the journal entryentry - the journal entry to persistprocedure - the callback when persistence is completepublic <T> void persistAsync(T entry,
akka.japi.Procedure<T> procedure)
DataPersistenceProviderpersistAsync in interface DataPersistenceProviderT - the type of the journal entryentry - the journal entry to persistprocedure - the callback when persistence is completepublic void saveSnapshot(Object snapshot)
DataPersistenceProvidersaveSnapshot in interface DataPersistenceProvidersnapshot - the snapshot object to savepublic void deleteSnapshots(akka.persistence.SnapshotSelectionCriteria criteria)
DataPersistenceProviderdeleteSnapshots in interface DataPersistenceProvidercriteria - the search criteriapublic void deleteMessages(long sequenceNumber)
DataPersistenceProviderdeleteMessages in interface DataPersistenceProvidersequenceNumber - the sequence numberpublic long getLastSequenceNumber()
DataPersistenceProvidergetLastSequenceNumber in interface DataPersistenceProviderCopyright © 2019 OpenDaylight. All rights reserved.