ByteArrayReadJournalDao

org.apache.pekko.persistence.jdbc.query.dao.legacy.ByteArrayReadJournalDao
class ByteArrayReadJournalDao(val db: Database, val profile: JdbcProfile, val readJournalConfig: ReadJournalConfig, serialization: Serialization)(implicit val ec: ExecutionContext, val mat: Materializer) extends BaseByteArrayReadJournalDao, OracleReadJournalDao

Attributes

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

Members list

Value members

Inherited methods

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

Returns distinct stream of persistenceIds

Returns distinct stream of persistenceIds

Attributes

Inherited from:
OracleReadJournalDao
Source
ByteArrayReadJournalDao.scala
def correctMaxForH2Driver(max: Long): Long

Attributes

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

Inherited from:
OracleReadJournalDao
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
Inherited from:
BaseByteArrayReadJournalDao
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
Inherited from:
BaseByteArrayReadJournalDao
Source
ByteArrayReadJournalDao.scala
override def maxJournalSequence(): Future[Long]

Attributes

Returns

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

Definition Classes
Inherited from:
BaseByteArrayReadJournalDao
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
Inherited from:
BaseByteArrayReadJournalDao
Source
ByteArrayReadJournalDao.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

Inherited fields

val theTableName: String

Attributes

Inherited from:
OracleReadJournalDao
Source
ByteArrayReadJournalDao.scala

Implicits

Implicits

implicit val ec: ExecutionContext

Attributes

Source
ByteArrayReadJournalDao.scala
implicit val mat: Materializer

Attributes

Source
ByteArrayReadJournalDao.scala

Inherited implicits

implicit val getJournalRow: GetResult[JournalRow]

Attributes

Inherited from:
OracleReadJournalDao
Source
ByteArrayReadJournalDao.scala