ByteArrayJournalDao

org.apache.pekko.persistence.jdbc.journal.dao.legacy.ByteArrayJournalDao
class ByteArrayJournalDao(val db: Database, val profile: JdbcProfile, val journalConfig: JournalConfig, serialization: Serialization)(implicit val ec: ExecutionContext, val mat: Materializer) extends BaseByteArrayJournalDao

Attributes

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

Members list

Value members

Inherited methods

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

Attributes

See also

pekko.persistence.journal.AsyncWriteJournal.asyncWriteMessages

Inherited from:
BaseByteArrayJournalDao
Source
ByteArrayJournalDao.scala

Attributes

Definition Classes
Inherited from:
BaseByteArrayJournalDao
Source
ByteArrayJournalDao.scala
def correctMaxForH2Driver(max: Long): Long

Attributes

Inherited from:
H2Compat
Source
H2Compat.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
Inherited from:
BaseByteArrayJournalDao
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
Inherited from:
BaseByteArrayJournalDao
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
Inherited from:
BaseByteArrayJournalDao
Source
ByteArrayJournalDao.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
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

Inherited from:
BaseByteArrayJournalDao
Source
ByteArrayJournalDao.scala
def writeJournalRows(xs: Seq[JournalRow]): Future[Unit]

Attributes

Inherited from:
BaseByteArrayJournalDao
Source
ByteArrayJournalDao.scala

Concrete fields

val db: Database

Attributes

Source
ByteArrayJournalDao.scala
val profile: JdbcProfile

Attributes

Source
ByteArrayJournalDao.scala

Inherited fields

val logger: Logger

Attributes

Inherited from:
BaseByteArrayJournalDao
Source
ByteArrayJournalDao.scala

Implicits

Implicits

implicit val ec: ExecutionContext

Attributes

Source
ByteArrayJournalDao.scala
implicit val mat: Materializer

Attributes

Source
ByteArrayJournalDao.scala