public class DelegatingPersistentDataProvider extends Object implements DataPersistenceProvider
| Constructor and Description |
|---|
DelegatingPersistentDataProvider(DataPersistenceProvider delegate) |
| 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.
|
DataPersistenceProvider |
getDelegate() |
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 entry)
Saves a snapshot.
|
void |
setDelegate(DataPersistenceProvider delegate) |
public DelegatingPersistentDataProvider(DataPersistenceProvider delegate)
public void setDelegate(DataPersistenceProvider delegate)
public DataPersistenceProvider getDelegate()
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 entry)
DataPersistenceProvidersaveSnapshot in interface DataPersistenceProviderentry - 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.