Class PersistentDataProvider

    • Constructor Detail

      • PersistentDataProvider

        public PersistentDataProvider​(akka.persistence.AbstractPersistentActor persistentActor)
    • Method Detail

      • isRecoveryApplicable

        public boolean isRecoveryApplicable()
        Description copied from interface: DataPersistenceProvider
        Returns whether or not persistence recovery is applicable/enabled.
        Specified by:
        isRecoveryApplicable in interface DataPersistenceProvider
        Returns:
        true if recovery is applicable, otherwise false, in which case the provider is not persistent and may not have anything to be recovered
      • persist

        public <T> void persist​(T entry,
                                akka.japi.Procedure<T> procedure)
        Description copied from interface: DataPersistenceProvider
        Persists an entry to the applicable journal synchronously.
        Specified by:
        persist in interface DataPersistenceProvider
        Type Parameters:
        T - the type of the journal entry
        Parameters:
        entry - the journal entry to persist
        procedure - the callback when persistence is complete
      • persistAsync

        public <T> void persistAsync​(T entry,
                                     akka.japi.Procedure<T> procedure)
        Description copied from interface: DataPersistenceProvider
        Persists an entry to the applicable journal asynchronously.
        Specified by:
        persistAsync in interface DataPersistenceProvider
        Type Parameters:
        T - the type of the journal entry
        Parameters:
        entry - the journal entry to persist
        procedure - the callback when persistence is complete
      • deleteSnapshots

        public void deleteSnapshots​(akka.persistence.SnapshotSelectionCriteria criteria)
        Description copied from interface: DataPersistenceProvider
        Deletes snapshots based on the given criteria.
        Specified by:
        deleteSnapshots in interface DataPersistenceProvider
        Parameters:
        criteria - the search criteria
      • deleteMessages

        public void deleteMessages​(long sequenceNumber)
        Description copied from interface: DataPersistenceProvider
        Deletes journal entries up to the given sequence number.
        Specified by:
        deleteMessages in interface DataPersistenceProvider
        Parameters:
        sequenceNumber - the sequence number