package eventsourced
Type Members
-
trait
BehaviorContext extends EventSourcedContext
Superinterface of all contexts that allow changing the current entities behavior behavior.
-
trait
CommandContext extends EventSourcedContext with ClientActionContext with EffectContext
An event sourced command context.
An event sourced command context.
Methods annotated with
CommandHandlermay take this is a parameter. It allows emitting new events in response to a command, along with forwarding the result to other entities, and performing side effects on other entities. - class CommandHandler extends Annotation with Annotation with ClassfileAnnotation
-
trait
EventBehaviorContext extends EventContext with BehaviorContext
Event handler context that allows changing behavior.
Event handler context that allows changing behavior. This can be passed to all
EventHandlerannotated methods. -
trait
EventContext extends EventSourcedContext
Context for an event.
- class EventHandler extends Annotation with Annotation with ClassfileAnnotation
-
trait
EventSourcedContext extends EntityContext
Root context for all event sourcing contexts.
- class EventSourcedEntity extends Annotation with Annotation with ClassfileAnnotation
-
trait
EventSourcedEntityCreationContext extends EventSourcedContext with BehaviorContext
Creation context for
EventSourcedEntityannotated entities.Creation context for
EventSourcedEntityannotated entities.This may be accepted as an argument to the constructor of an event sourced entity.
-
trait
EventSourcedEntityFactory extends AnyRef
Low level interface for handling events and commands on an entity.
Low level interface for handling events and commands on an entity.
Generally, this should not be needed, instead, a class annotated with the
EventHandler,CommandHandlerand similar annotations should be used. -
trait
EventSourcedEntityHandler extends AnyRef
Low level interface for handling events and commands on an entity.
Low level interface for handling events and commands on an entity.
Generally, this should not be needed, instead, a class annotated with the
EventHandler,CommandHandlerand similar annotations should be used. - class Snapshot extends Annotation with Annotation with ClassfileAnnotation
-
trait
SnapshotBehaviorContext extends SnapshotContext with BehaviorContext
Snapshot context that allows changing behavior.
Snapshot context that allows changing behavior.
This may be passed to any
SnapshotHandlerannotated methods. -
trait
SnapshotContext extends EventSourcedContext
A snapshot context.
- class SnapshotHandler extends Annotation with Annotation with ClassfileAnnotation