Class/Object

io.funcqrs.akka

ProjectionActorWithOffsetManagedByAkkaPersistence

Related Docs: object ProjectionActorWithOffsetManagedByAkkaPersistence | package akka

Permalink

class ProjectionActorWithOffsetManagedByAkkaPersistence extends ProjectionActor with PersistedOffsetAkka

A ProjectionActor that saves the offset as a snapshot in Akka Persistence

This implementation is a quick win for those that simply want to persist the offset without caring about the persistence layer.

However, the drawback is that most (if not all) akka-persistence snapshot plugins will save it as binary data which make it difficult to inspect the DB to get to know the last processed event.

Linear Supertypes
PersistedOffsetAkka, PersistentActor, Eventsourced, PersistenceRecovery, PersistenceIdentity, PersistenceStash, StashFactory, Snapshotter, OffsetPersistence, ProjectionActor, Stash, RequiresMessageQueue[DequeBasedMessageQueueSemantics], UnrestrictedStash, StashSupport, ActorSubscriber, ActorLogging, Actor, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. ProjectionActorWithOffsetManagedByAkkaPersistence
  2. PersistedOffsetAkka
  3. PersistentActor
  4. Eventsourced
  5. PersistenceRecovery
  6. PersistenceIdentity
  7. PersistenceStash
  8. StashFactory
  9. Snapshotter
  10. OffsetPersistence
  11. ProjectionActor
  12. Stash
  13. RequiresMessageQueue
  14. UnrestrictedStash
  15. StashSupport
  16. ActorSubscriber
  17. ActorLogging
  18. Actor
  19. AnyRef
  20. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new ProjectionActorWithOffsetManagedByAkkaPersistence(projection: Projection, sourceProvider: EventsSourceProvider, persistenceId: String)

    Permalink

Type Members

  1. type Receive = PartialFunction[Any, Unit]

    Permalink
    Definition Classes
    Actor

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. object OnNextDomainEvent

    Permalink
    Definition Classes
    ProjectionActor
  5. def acceptingEvents: Receive

    Permalink
    Definition Classes
    ProjectionActor
  6. def aroundPostRestart(reason: Throwable): Unit

    Permalink
    Attributes
    protected[akka]
    Definition Classes
    Eventsourced → Actor
  7. def aroundPostStop(): Unit

    Permalink
    Attributes
    protected[akka]
    Definition Classes
    Eventsourced → Actor
  8. def aroundPreRestart(reason: Throwable, message: Option[Any]): Unit

    Permalink
    Attributes
    protected[akka]
    Definition Classes
    Eventsourced → Actor
  9. def aroundPreStart(): Unit

    Permalink
    Attributes
    protected[akka]
    Definition Classes
    Eventsourced → Actor
  10. def aroundReceive(receive: Receive, message: Any): Unit

    Permalink
    Attributes
    protected[akka]
    Definition Classes
    Eventsourced → Actor
  11. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  12. def cancel(): Unit

    Permalink
    Attributes
    protected
    Definition Classes
    ActorSubscriber
  13. final def canceled: Boolean

    Permalink
    Definition Classes
    ActorSubscriber
  14. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  15. implicit val context: ActorContext

    Permalink
    Definition Classes
    Actor
  16. def deferAsync[A](event: A)(handler: (A) ⇒ Unit): Unit

    Permalink
    Definition Classes
    Eventsourced
  17. def deleteMessages(toSequenceNr: Long): Unit

    Permalink
    Definition Classes
    Eventsourced
  18. def deleteSnapshot(sequenceNr: Long): Unit

    Permalink
    Definition Classes
    Snapshotter
  19. def deleteSnapshots(criteria: SnapshotSelectionCriteria): Unit

    Permalink
    Definition Classes
    Snapshotter
  20. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  21. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  22. def errorHandling(phase: String): Receive

    Permalink

    Used as error handling Receive when running projections or accepting new events.

    Used as error handling Receive when running projections or accepting new events.

    Will stop the actor whenever a failure kicks in. BackoffSupervisor must restart it

    Definition Classes
    ProjectionActor
  23. def fallbackRequestStrategy: RequestStrategy

    Permalink
    Attributes
    protected
    Definition Classes
    ProjectionActor
  24. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  25. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  26. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  27. def internalStashOverflowStrategy: StashOverflowStrategy

    Permalink
    Definition Classes
    PersistenceStash
  28. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  29. def isStashing: Boolean

    Permalink
    Definition Classes
    ProjectionActor
  30. def journalPluginId: String

    Permalink
    Definition Classes
    PersistenceIdentity
  31. var lastProcessedOffset: Option[Long]

    Permalink
    Definition Classes
    ProjectionActor
  32. def lastSequenceNr: Long

    Permalink
    Definition Classes
    Eventsourced
  33. def loadSnapshot(persistenceId: String, criteria: SnapshotSelectionCriteria, toSequenceNr: Long): Unit

    Permalink
    Definition Classes
    Snapshotter
  34. def log: LoggingAdapter

    Permalink
    Definition Classes
    ActorLogging
  35. val maxDemand: Int

    Permalink
    Definition Classes
    ProjectionActor
  36. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  37. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  38. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  39. def onPersistFailure(cause: Throwable, event: Any, seqNr: Long): Unit

    Permalink
    Attributes
    protected
    Definition Classes
    Eventsourced
  40. def onPersistRejected(cause: Throwable, event: Any, seqNr: Long): Unit

    Permalink
    Attributes
    protected
    Definition Classes
    Eventsourced
  41. def onRecoveryFailure(cause: Throwable, event: Option[Any]): Unit

    Permalink
    Attributes
    protected
    Definition Classes
    Eventsourced
  42. def persist[A](event: A)(handler: (A) ⇒ Unit): Unit

    Permalink
    Definition Classes
    Eventsourced
  43. def persistAll[A](events: Seq[A])(handler: (A) ⇒ Unit): Unit

    Permalink
    Definition Classes
    Eventsourced
  44. def persistAllAsync[A](events: Seq[A])(handler: (A) ⇒ Unit): Unit

    Permalink
    Definition Classes
    Eventsourced
  45. def persistAsync[A](event: A)(handler: (A) ⇒ Unit): Unit

    Permalink
    Definition Classes
    Eventsourced
  46. val persistenceId: String

    Permalink
    Definition Classes
    ProjectionActorWithOffsetManagedByAkkaPersistencePersistedOffsetAkka → PersistenceIdentity
  47. def postRestart(reason: Throwable): Unit

    Permalink
    Definition Classes
    Actor
    Annotations
    @throws( classOf[java.lang.Exception] )
  48. def postStop(): Unit

    Permalink
    Definition Classes
    UnrestrictedStash → Actor
  49. def preRestart(reason: Throwable, message: Option[Any]): Unit

    Permalink
    Definition Classes
    UnrestrictedStash → Actor
  50. def preStart(): Unit

    Permalink
    Definition Classes
    Actor
    Annotations
    @throws( classOf[java.lang.Exception] )
  51. def receive: Receive

    Permalink
    Definition Classes
    PersistedOffsetAkka → PersistentActor → Actor
  52. def receiveCommand: Receive

    Permalink
    Definition Classes
    PersistedOffsetAkka → Eventsourced
  53. val receiveRecover: Receive

    Permalink
    Definition Classes
    PersistedOffsetAkka → Eventsourced
  54. def recovery: Recovery

    Permalink
    Definition Classes
    PersistenceRecovery
  55. def recoveryCompleted(): Unit

    Permalink
    Definition Classes
    ProjectionActor
  56. def recoveryFinished: Boolean

    Permalink
    Definition Classes
    Eventsourced
  57. def recoveryRunning: Boolean

    Permalink
    Definition Classes
    Eventsourced
  58. def remainingRequested: Int

    Permalink
    Attributes
    protected
    Definition Classes
    ActorSubscriber
  59. def request(elements: Long): Unit

    Permalink
    Attributes
    protected
    Definition Classes
    ActorSubscriber
  60. def requestStrategy: RequestStrategy

    Permalink
    Attributes
    protected
    Definition Classes
    ProjectionActor → ActorSubscriber
  61. def runningProjection(currentEvent: DomainEvent, offset: Long): Receive

    Permalink
    Definition Classes
    ProjectionActor
  62. def saveCurrentOffset(offset: Long): Future[Unit]

    Permalink
    Definition Classes
    PersistedOffsetAkkaOffsetPersistence
  63. def saveSnapshot(snapshot: Any): Unit

    Permalink
    Definition Classes
    Snapshotter
  64. implicit final val self: ActorRef

    Permalink
    Definition Classes
    Actor
  65. final def sender(): ActorRef

    Permalink
    Definition Classes
    Actor
  66. def snapshotPluginId: String

    Permalink
    Definition Classes
    PersistenceIdentity
  67. def snapshotSequenceNr: Long

    Permalink
    Definition Classes
    Eventsourced → Snapshotter
  68. def snapshotterId: String

    Permalink
    Definition Classes
    Eventsourced → Snapshotter
  69. def stash(): Unit

    Permalink
    Definition Classes
    StashSupport
  70. def stashWithBackPressure(): Unit

    Permalink
    Definition Classes
    ProjectionActor
  71. def supervisorStrategy: SupervisorStrategy

    Permalink
    Definition Classes
    Actor
  72. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  73. implicit val timeout: Timeout

    Permalink
    Definition Classes
    ProjectionActor
  74. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  75. def unhandled(message: Any): Unit

    Permalink
    Definition Classes
    Eventsourced → Actor
  76. def unstashAll(): Unit

    Permalink
    Definition Classes
    Eventsourced → StashSupport
  77. def unstashAllWithBackPressure(): Unit

    Permalink
    Definition Classes
    ProjectionActor
  78. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  79. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  80. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  81. def waitingOffsetPersistence(currentEvent: DomainEvent): Receive

    Permalink
    Definition Classes
    ProjectionActor

Deprecated Value Members

  1. def persist[A](events: Seq[A])(handler: (A) ⇒ Unit): Unit

    Permalink
    Definition Classes
    Eventsourced
    Annotations
    @deprecated
    Deprecated

    (Since version 2.4) use persistAll instead

  2. def persistAsync[A](events: Seq[A])(handler: (A) ⇒ Unit): Unit

    Permalink
    Definition Classes
    Eventsourced
    Annotations
    @deprecated
    Deprecated

    (Since version 2.4) use persistAllAsync instead

Inherited from PersistedOffsetAkka

Inherited from PersistentActor

Inherited from Eventsourced

Inherited from PersistenceRecovery

Inherited from PersistenceIdentity

Inherited from PersistenceStash

Inherited from StashFactory

Inherited from Snapshotter

Inherited from OffsetPersistence

Inherited from ProjectionActor

Inherited from Stash

Inherited from RequiresMessageQueue[DequeBasedMessageQueueSemantics]

Inherited from UnrestrictedStash

Inherited from StashSupport

Inherited from ActorSubscriber

Inherited from ActorLogging

Inherited from Actor

Inherited from AnyRef

Inherited from Any

Ungrouped