DefaultJournalDao

org.apache.pekko.persistence.jdbc.journal.dao.DefaultJournalDao
class DefaultJournalDao(val db: Database, val profile: JdbcProfile, val journalConfig: JournalConfig, serialization: Serialization)(implicit val ec: ExecutionContext, val mat: Materializer) extends BaseDao[(JournalPekkoSerializationRow, Set[String])], BaseJournalDaoWithReadMessages, JournalDao, H2Compat

A JournalDao that uses Apache Pekko serialization to serialize the payload and store the manifest and serializer id used.

Attributes

Source
DefaultJournalDao.scala
Graph
Supertypes
trait H2Compat
trait JournalDao
class BaseDao[(JournalPekkoSerializationRow, Set[String])]
class Object
trait Matchable
class Any
Show all

Members list

Value members

Concrete methods

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

Attributes

See also

pekko.persistence.journal.AsyncWriteJournal.asyncWriteMessages

Definition Classes
Source
DefaultJournalDao.scala

Attributes

Definition Classes
Source
DefaultJournalDao.scala
override def delete(persistenceId: String, maxSequenceNr: 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

Definition Classes
Source
DefaultJournalDao.scala
override 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

Definition Classes
Source
DefaultJournalDao.scala
override 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

Definition Classes
Source
DefaultJournalDao.scala
override def writeJournalRows(xs: Seq[(JournalPekkoSerializationRow, Set[String])]): Future[Unit]

Attributes

Definition Classes
Source
DefaultJournalDao.scala

Inherited methods

def correctMaxForH2Driver(max: Long): Long

Attributes

Inherited from:
H2Compat
Source
H2Compat.scala
override 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

Definition Classes
Inherited from:
BaseJournalDaoWithReadMessages
Source
BaseJournalDaoWithReadMessages.scala
def queueWriteJournalRows(xs: Seq[(JournalPekkoSerializationRow, Set[String])]): Future[Unit]

Attributes

Inherited from:
BaseDao
Source
BaseDao.scala

Concrete fields

val db: Database

Attributes

Source
DefaultJournalDao.scala
val profile: JdbcProfile

Attributes

Source
DefaultJournalDao.scala

Implicits

Implicits

implicit val ec: ExecutionContext

Attributes

Source
DefaultJournalDao.scala
implicit val mat: Materializer

Attributes

Source
DefaultJournalDao.scala