package scaladsl
- Alphabetic
- Public
- Protected
Type Members
- final class ChangeEventHandler[Command, State, ChangeEvent] extends AnyRef
API May Change: Define these handlers in the DurableStateBehavior#withChangeEventHandler to store additional change event when the state is updated.
API May Change: Define these handlers in the DurableStateBehavior#withChangeEventHandler to store additional change event when the state is updated. The event can be used in Projections.
- Annotations
- @ApiMayChange()
- trait DurableStateBehavior[Command, State] extends DeferredBehavior[Command]
Further customization of the
DurableStateBehavior
can be done with the methods defined here.Further customization of the
DurableStateBehavior
can be done with the methods defined here.Not for user extension
API May Change
- Annotations
- @ApiMayChange() @DoNotInherit()
- trait Effect[+State] extends AnyRef
A command handler returns an
Effect
directive that defines what state to persist.A command handler returns an
Effect
directive that defines what state to persist.Instances are created through the factories in the Effect companion object.
Not for user extension.
- Annotations
- @DoNotInherit()
- trait EffectBuilder[+State] extends Effect[State]
A command handler returns an
Effect
directive that defines what state to persist.A command handler returns an
Effect
directive that defines what state to persist.Instances are created through the factories in the Effect companion object.
Additional side effects can be performed in the callback
thenRun
Not for user extension.
- Annotations
- @DoNotInherit()
- trait ReplyEffect[+State] extends Effect[State]
DurableStateBehavior.withEnforcedReplies can be used to enforce that replies are not forgotten.
DurableStateBehavior.withEnforcedReplies can be used to enforce that replies are not forgotten. Then there will be compilation errors if the returned effect isn't a ReplyEffect, which can be created with Effect.reply, Effect.noReply, EffectBuilder.thenReply, or EffectBuilder.thenNoReply.
Not intended for user extension.
- Annotations
- @DoNotInherit()
Value Members
- object ChangeEventHandler
API May Change
API May Change
- Annotations
- @ApiMayChange()
- object DurableStateBehavior
API May Change
API May Change
- Annotations
- @ApiMayChange()
- object Effect
Factory methods for creating Effect directives - how a
DurableStateBehavior
reacts on a command.Factory methods for creating Effect directives - how a
DurableStateBehavior
reacts on a command.API May Change
- Annotations
- @ApiMayChange()