BaseByteArrayReadJournalDao

org.apache.pekko.persistence.jdbc.query.dao.legacy.BaseByteArrayReadJournalDao

Attributes

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

Members list

Value members

Concrete methods

override def allPersistenceIdsSource(max: Long): Source[String, NotUsed]

Returns distinct stream of persistenceIds

Returns distinct stream of persistenceIds

Attributes

Definition Classes
Source
ByteArrayReadJournalDao.scala
override def eventsByTag(tag: String, offset: Long, maxOffset: Long, max: Long): Source[Try[(PersistentRepr, Set[String], Long)], NotUsed]

Returns a Source of deserialized data for certain tag from an offset. The result is sorted by the global ordering of the events. Each element with be a try with a PersistentRepr, set of tags, and a Long representing the global ordering of events

Returns a Source of deserialized data for certain tag from an offset. The result is sorted by the global ordering of the events. Each element with be a try with a PersistentRepr, set of tags, and a Long representing the global ordering of events

Attributes

Definition Classes
Source
ByteArrayReadJournalDao.scala
override def journalSequence(offset: Long, limit: Long): Source[Long, NotUsed]

Value parameters

limit

Maximum number of values to retrieve

offset

Minimum value to retrieve

Attributes

Returns

A Source of journal event sequence numbers (corresponding to the Ordering column)

Definition Classes
Source
ByteArrayReadJournalDao.scala
override def lastPersistenceIdSequenceNumber(persistenceId: String): Future[Option[Long]]

Returns the last known sequence number for the given persistenceId. Empty if the persistenceId is unknown.

Returns the last known sequence number for the given persistenceId. Empty if the persistenceId is unknown.

Value parameters

persistenceId

The persistenceId for which the last known sequence number should be returned.

Attributes

Returns

Some sequence number or None if the persistenceId is unknown.

Definition Classes
Source
ByteArrayReadJournalDao.scala
override def maxJournalSequence(): Future[Long]

Attributes

Returns

The value of the maximum (ordering) id in the journal

Definition Classes
Source
ByteArrayReadJournalDao.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
ByteArrayReadJournalDao.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

Abstract fields

val profile: JdbcProfile

Attributes

Source
ByteArrayReadJournalDao.scala

Implicits

Inherited and Abstract implicits

implicit val ec: ExecutionContext
implicit val mat: Materializer