JournalDaoWithUpdates

org.apache.pekko.persistence.jdbc.journal.dao.JournalDaoWithUpdates

A JournalDao with extended capabilities, such as updating payloads and tags of existing events. These operations should be used sparingly, for example for migrating data from un-encrypted to encrypted formats

Attributes

Source
JournalDaoWithUpdates.scala
Graph
Supertypes
trait JournalDao
class Object
trait Matchable
class Any
Known subtypes

Members list

Value members

Abstract methods

def update(persistenceId: String, sequenceNr: Long, payload: AnyRef): Future[Done]

Update (!) an existing event with the passed in data.

Update (!) an existing event with the passed in data.

Attributes

Source
JournalDaoWithUpdates.scala

Inherited and Abstract methods

def asyncWriteMessages(messages: Seq[AtomicWrite]): Future[Seq[Try[Unit]]]

Attributes

See also

pekko.persistence.journal.AsyncWriteJournal.asyncWriteMessages

Inherited from:
JournalDao
Source
JournalDao.scala
def delete(persistenceId: String, toSequenceNr: Long): Future[Unit]

Deletes all persistent messages up to toSequenceNr (inclusive) for the persistenceId

Deletes all persistent messages up to toSequenceNr (inclusive) for the persistenceId

Attributes

Inherited from:
JournalDao
Source
JournalDao.scala
def highestSequenceNr(persistenceId: String, fromSequenceNr: Long): Future[Long]

Returns the highest sequence number for the events that are stored for that persistenceId. When no events are found for the persistenceId, 0L will be the highest sequence number

Returns the highest sequence number for the events that are stored for that persistenceId. When no events are found for the persistenceId, 0L will be the highest sequence number

Attributes

Inherited from:
JournalDao
Source
JournalDao.scala
def messages(persistenceId: String, fromSequenceNr: Long, toSequenceNr: Long, max: Long): Source[Try[(PersistentRepr, Long)], NotUsed]

Returns a Source of PersistentRepr and ordering number for a certain persistenceId. It includes the events with sequenceNr between fromSequenceNr (inclusive) and toSequenceNr (inclusive).

Returns a Source of PersistentRepr and ordering number for a certain persistenceId. It includes the events with sequenceNr between fromSequenceNr (inclusive) and toSequenceNr (inclusive).

Attributes

Inherited from:
JournalDaoWithReadMessages
Source
JournalDaoWithReadMessages.scala
def messagesWithBatch(persistenceId: String, fromSequenceNr: Long, toSequenceNr: Long, batchSize: Int, refreshInterval: Option[(FiniteDuration, Scheduler)]): Source[Try[(PersistentRepr, Long)], NotUsed]

Returns a Source of PersistentRepr and ordering number for a certain persistenceId. It includes the events with sequenceNr between fromSequenceNr (inclusive) and toSequenceNr (inclusive).

Returns a Source of PersistentRepr and ordering number for a certain persistenceId. It includes the events with sequenceNr between fromSequenceNr (inclusive) and toSequenceNr (inclusive).

Attributes

Inherited from:
JournalDaoWithReadMessages
Source
JournalDaoWithReadMessages.scala