BaseByteArrayJournalDao

org.apache.pekko.persistence.jdbc.journal.dao.legacy.BaseByteArrayJournalDao

The DefaultJournalDao contains all the knowledge to persist and load serialized journal entries

Attributes

Source
ByteArrayJournalDao.scala
Graph
Supertypes
trait H2Compat
trait JournalDao
class Object
trait Matchable
class Any
Show all
Known subtypes

Members list

Value members

Concrete methods

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

Attributes

See also

pekko.persistence.journal.AsyncWriteJournal.asyncWriteMessages

Source
ByteArrayJournalDao.scala

Attributes

Definition Classes
Source
ByteArrayJournalDao.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
ByteArrayJournalDao.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
ByteArrayJournalDao.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
ByteArrayJournalDao.scala
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
ByteArrayJournalDao.scala
def writeJournalRows(xs: Seq[JournalRow]): Future[Unit]

Attributes

Source
ByteArrayJournalDao.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[JournalRow]): Future[Unit]

Attributes

Inherited from:
BaseDao
Source
BaseDao.scala

Abstract fields

val db: Database

Attributes

Source
ByteArrayJournalDao.scala
val profile: JdbcProfile

Attributes

Source
ByteArrayJournalDao.scala

Concrete fields

val logger: Logger

Attributes

Source
ByteArrayJournalDao.scala

Implicits

Implicits

implicit val ec: ExecutionContext

Attributes

Source
ByteArrayJournalDao.scala
implicit val mat: Materializer

Attributes

Source
ByteArrayJournalDao.scala