JournalDao

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

Attributes

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

Members list

Value members

Abstract methods

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

Attributes

See also

pekko.persistence.journal.AsyncWriteJournal.asyncWriteMessages

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

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

Source
JournalDao.scala

Inherited and Abstract methods

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