Packages

class JournalSequenceActor extends Actor with ActorLogging with Timers

To support the EventsByTag query, this actor keeps track of which rows are visible in the database. This is required to guarantee the EventByTag does not skip any rows in case rows with a higher (ordering) id are visible in the database before rows with a lower (ordering) id.

Source
JournalSequenceActor.scala
Linear Supertypes
Timers, ActorLogging, Actor, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. JournalSequenceActor
  2. Timers
  3. ActorLogging
  4. Actor
  5. AnyRef
  6. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

  1. new JournalSequenceActor(readJournalDao: ReadJournalDao, config: JournalSequenceRetrievalConfig)(implicit materializer: Materializer)

Type Members

  1. type Receive = PartialFunction[Any, Unit]
    Definition Classes
    Actor

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. def aroundPostRestart(reason: Throwable): Unit
    Attributes
    protected[pekko]
    Definition Classes
    Actor
    Annotations
    @InternalApi()
  5. def aroundPostStop(): Unit
    Attributes
    protected[pekko]
    Definition Classes
    Timers → Actor
  6. def aroundPreRestart(reason: Throwable, message: Option[Any]): Unit
    Attributes
    protected[pekko]
    Definition Classes
    Timers → Actor
  7. def aroundPreStart(): Unit
    Attributes
    protected[pekko]
    Definition Classes
    Actor
    Annotations
    @InternalApi()
  8. def aroundReceive(receive: actor.Actor.Receive, msg: Any): Unit
    Attributes
    protected[pekko]
    Definition Classes
    Timers → Actor
  9. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  10. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native()
  11. implicit val context: ActorContext
    Definition Classes
    Actor
  12. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  13. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  14. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable])
  15. def findGaps(elements: Seq[OrderingId], currentMaxOrdering: OrderingId, missingByCounter: Map[Int, MissingElements[OrderingId]], moduloCounter: Int): Unit

    This method that implements the "find gaps" algo.

    This method that implements the "find gaps" algo. It's the meat and main purpose of this actor.

  16. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  17. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  18. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  19. def log: LoggingAdapter
    Definition Classes
    ActorLogging
  20. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  21. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  22. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  23. def postRestart(reason: Throwable): Unit
    Definition Classes
    Actor
    Annotations
    @throws(classOf[java.lang.Exception])
  24. def postStop(): Unit
    Definition Classes
    Actor
    Annotations
    @throws(classOf[java.lang.Exception])
  25. def preRestart(reason: Throwable, message: Option[Any]): Unit
    Definition Classes
    Actor
    Annotations
    @throws(classOf[java.lang.Exception])
  26. def preStart(): Unit
    Definition Classes
    JournalSequenceActor → Actor
  27. def receive(currentMaxOrdering: OrderingId, missingByCounter: Map[Int, MissingElements[OrderingId]], moduloCounter: Int, previousDelay: FiniteDuration = queryDelay): Receive

    currentMaxOrdering

    The highest ordering value for which it is known that no missing elements exist

    missingByCounter

    A map with missing orderingIds. The key of the map is the count at which the missing elements can be assumed to be "skipped ids" (they are no longer assumed missing).

    moduloCounter

    A counter which is incremented every time a new query have been executed, modulo maxTries

    previousDelay

    The last used delay (may change in case failures occur)

  28. def receive: Receive
    Definition Classes
    JournalSequenceActor → Actor
  29. def scheduleQuery(delay: FiniteDuration): Unit
  30. implicit final val self: ActorRef
    Definition Classes
    Actor
  31. final def sender(): ActorRef
    Definition Classes
    Actor
  32. def supervisorStrategy: SupervisorStrategy
    Definition Classes
    Actor
  33. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  34. final def timers: TimerScheduler
    Definition Classes
    Timers
  35. def toString(): String
    Definition Classes
    AnyRef → Any
  36. def unhandled(message: Any): Unit
    Definition Classes
    Actor
  37. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  38. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  39. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()

Inherited from Timers

Inherited from ActorLogging

Inherited from Actor

Inherited from AnyRef

Inherited from Any

Ungrouped