Class/Object

io.funcqrs.akka

AggregateActor

Related Docs: object AggregateActor | package akka

Permalink

class AggregateActor[A <: AggregateLike] extends AggregateAliases with PersistentActor with ActorLogging

Linear Supertypes
ActorLogging, PersistentActor, Eventsourced, PersistenceRecovery, PersistenceIdentity, PersistenceStash, StashFactory, Stash, RequiresMessageQueue[DequeBasedMessageQueueSemantics], UnrestrictedStash, StashSupport, Snapshotter, Actor, AggregateAliases, ProtocolAliases, AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. AggregateActor
  2. ActorLogging
  3. PersistentActor
  4. Eventsourced
  5. PersistenceRecovery
  6. PersistenceIdentity
  7. PersistenceStash
  8. StashFactory
  9. Stash
  10. RequiresMessageQueue
  11. UnrestrictedStash
  12. StashSupport
  13. Snapshotter
  14. Actor
  15. AggregateAliases
  16. ProtocolAliases
  17. AnyRef
  18. Any
  1. Hide All
  2. Show all
Visibility
  1. Public
  2. All

Instance Constructors

  1. new AggregateActor(identifier: A.Id, behavior: Behavior[A], inactivityTimeout: Option[Duration] = None)

    Permalink

Type Members

  1. sealed trait ActorState extends AnyRef

    Permalink

    state of Aggregate Root

  2. type Aggregate = A

    Permalink
    Definition Classes
    AggregateActor → AggregateAliases
  3. type Command = ProtocolAliases.Protocol.ProtocolCommand

    Permalink
    Definition Classes
    ProtocolAliases
  4. type Event = ProtocolAliases.Protocol.ProtocolEvent

    Permalink
    Definition Classes
    ProtocolAliases
  5. type Events = Seq[Event]

    Permalink
    Definition Classes
    ProtocolAliases
  6. type Id = A.Id

    Permalink
    Definition Classes
    AggregateAliases
  7. type Protocol = A.Protocol

    Permalink
    Definition Classes
    AggregateAliases → ProtocolAliases
  8. 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 Available extends ActorState with Product with Serializable

    Permalink
  5. object Busy extends ActorState with Product with Serializable

    Permalink
  6. def afterEventPersisted(evt: Event): Unit

    Permalink

    This method should be used as a callback handler for persist() method.

    This method should be used as a callback handler for persist() method. It will: - apply the event on the aggregate effectively changing its state - check if a snapshot needs to be saved.

    evt

    DomainEvent that has been persisted

    Attributes
    protected
  7. def applyEvent(event: Event): State[Aggregate]

    Permalink

    Apply event on the AggregateRoot.

  8. def aroundPostRestart(reason: Throwable): Unit

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

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

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

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

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

    Permalink
    Definition Classes
    Any
  14. def changeState(state: ActorState): Unit

    Permalink
  15. def clone(): AnyRef

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

    Permalink
    Definition Classes
    Actor
  17. def defaultReceive: Receive

    Permalink
    Attributes
    protected
  18. def deferAsync[A](event: A)(handler: (A) ⇒ Unit): Unit

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

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

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

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

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

    Permalink
    Definition Classes
    AnyRef → Any
  24. val eventsPerSnapshot: Int

    Permalink

    Specifies how many events should be processed before new snapshot is taken.

    Specifies how many events should be processed before new snapshot is taken. TODO: make configurable

  25. def finalize(): Unit

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

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

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

    Permalink
    Definition Classes
    PersistenceStash
  29. val interpreter: AsyncInterpreter[A]

    Permalink
  30. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  31. def journalPluginId: String

    Permalink
    Definition Classes
    PersistenceIdentity
  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. final def ne(arg0: AnyRef): Boolean

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

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

    Permalink
    Definition Classes
    AnyRef
  38. def onCommandFailure(failedCmd: FailedCommand): Unit

    Permalink
  39. def onEvent(evt: Event): Unit

    Permalink
    Attributes
    protected
  40. def onPersistFailure(cause: Throwable, event: Any, seqNr: Long): Unit

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

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

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

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

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

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

    Permalink
    Definition Classes
    Eventsourced
  47. val persistenceId: String

    Permalink
    Definition Classes
    AggregateActor → PersistenceIdentity
  48. def postRestart(reason: Throwable): Unit

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

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

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

    Permalink
    Definition Classes
    AggregateActor → Actor
  52. def receive: Receive

    Permalink
    Definition Classes
    PersistentActor → Actor
  53. def receiveCommand: Receive

    Permalink
    Definition Classes
    AggregateActor → Eventsourced
  54. val receiveRecover: Receive

    Permalink

    Recovery handler that receives persisted events during recovery.

    Recovery handler that receives persisted events during recovery. If a state snapshot has been captured and saved, this handler will receive a SnapshotOffer message followed by events that are younger than the offered snapshot.

    This handler must not have side-effects other than changing persistent actor state i.e. it should not perform actions that may fail, such as interacting with external services, for example.

    Definition Classes
    AggregateActor → Eventsourced
  55. def recovery: Recovery

    Permalink
    Definition Classes
    PersistenceRecovery
  56. def recoveryFinished: Boolean

    Permalink
    Definition Classes
    Eventsourced
  57. def recoveryRunning: Boolean

    Permalink
    Definition Classes
    Eventsourced
  58. def restoreState(metadata: SnapshotMetadata, aggregate: Aggregate): Unit

    Permalink

    restore the lifecycle and state of the aggregate from a snapshot

    restore the lifecycle and state of the aggregate from a snapshot

    metadata

    snapshot metadata

    aggregate

    the aggregate

    Attributes
    protected
  59. def saveSnapshot(snapshot: Any): Unit

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

    Permalink
    Definition Classes
    Actor
  61. def sendState(replyTo: ActorRef): Unit

    Permalink

    send a message containing the aggregate's state back to the requester

    send a message containing the aggregate's state back to the requester

    replyTo

    actor to send message to

    Attributes
    protected
  62. final def sender(): ActorRef

    Permalink
    Definition Classes
    Actor
  63. def snapshotPluginId: String

    Permalink
    Definition Classes
    PersistenceIdentity
  64. def snapshotSequenceNr: Long

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

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

    Permalink
    Definition Classes
    StashSupport
  67. def supervisorStrategy: SupervisorStrategy

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

    Permalink
    Definition Classes
    AnyRef
  69. def toString(): String

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

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

    Permalink
    Definition Classes
    Eventsourced → StashSupport
  72. final def wait(): Unit

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

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 ActorLogging

Inherited from PersistentActor

Inherited from Eventsourced

Inherited from PersistenceRecovery

Inherited from PersistenceIdentity

Inherited from PersistenceStash

Inherited from StashFactory

Inherited from Stash

Inherited from RequiresMessageQueue[DequeBasedMessageQueueSemantics]

Inherited from UnrestrictedStash

Inherited from StashSupport

Inherited from Snapshotter

Inherited from Actor

Inherited from AggregateAliases

Inherited from ProtocolAliases

Inherited from AnyRef

Inherited from Any

Ungrouped