CurrentEventsBySliceQuery

org.apache.pekko.persistence.query.typed.scaladsl.CurrentEventsBySliceQuery

A plugin may optionally support this query by implementing this trait.

API May Change

Attributes

Source
CurrentEventsBySliceQuery.scala
Graph
Supertypes
trait ReadJournal
class Object
trait Matchable
class Any

Members list

Value members

Abstract methods

def currentEventsBySlices[Event](entityType: String, minSlice: Int, maxSlice: Int, offset: Offset): Source[EventEnvelope[Event], NotUsed]

Same type of query as pekko.persistence.query.typed.scaladsl.EventsBySliceQuery.eventsBySlices but the event stream is completed immediately when it reaches the end of the "result set". Depending on journal implementation, this may mean all events up to when the query is started, or it may include events that are persisted while the query is still streaming results. For eventually consistent stores, it may only include all events up to some point before the query is started.

Same type of query as pekko.persistence.query.typed.scaladsl.EventsBySliceQuery.eventsBySlices but the event stream is completed immediately when it reaches the end of the "result set". Depending on journal implementation, this may mean all events up to when the query is started, or it may include events that are persisted while the query is still streaming results. For eventually consistent stores, it may only include all events up to some point before the query is started.

Attributes

Source
CurrentEventsBySliceQuery.scala
def sliceForPersistenceId(persistenceId: String): Int
def sliceRanges(numberOfRanges: Int): Seq[Range]