package javadsl
- Alphabetic
- Public
- All
Type Members
-
trait
CommandHandler[Command, Event, State] extends AnyRef
FunctionalInterface for reacting on commands
FunctionalInterface for reacting on commands
Used with CommandHandlerBuilder to setup the behavior of a EventSourcedBehavior
- Annotations
- @FunctionalInterface()
- final class CommandHandlerBuilder[Command, Event, State] extends AnyRef
- final class CommandHandlerBuilderByState[Command, Event, S <: State, State] extends AnyRef
-
abstract
class
Effect[+Event, State] extends AnyRef
A command handler returns an
Effect
directive that defines what event or events to persist.A command handler returns an
Effect
directive that defines what event or events to persist.Additional side effects can be performed in the callback
andThen
Instances of
Effect
are available through factories EventSourcedBehavior.Effect.Not intended for user extension.
- Annotations
- @DoNotInherit()
-
sealed
class
EffectFactories[Event, State] extends AnyRef
Factory methods for creating Effect directives - how a persistent actor reacts on a command.
Factory methods for creating Effect directives - how a persistent actor reacts on a command. Created via EventSourcedBehavior.Effect.
Not for user extension
- Annotations
- @DoNotInherit()
-
trait
EventHandler[State, Event] extends AnyRef
FunctionalInterface for reacting on events having been persisted
FunctionalInterface for reacting on events having been persisted
Used with EventHandlerBuilder to setup the behavior of a EventSourcedBehavior
- Annotations
- @FunctionalInterface()
- final class EventHandlerBuilder[State >: Null, Event] extends AnyRef
- final class EventHandlerBuilderByState[S <: State, State >: Null, Event] extends AnyRef
-
abstract
class
EventSourcedBehavior[Command, Event, State >: Null] extends DeferredBehavior[Command]
- Annotations
- @ApiMayChange()
-
abstract
class
EventSourcedBehaviorWithEnforcedReplies[Command, Event, State >: Null] extends EventSourcedBehavior[Command, Event, State]
FIXME This is not completed for javadsl yet.
FIXME This is not completed for javadsl yet. The compiler is not enforcing the replies yet.
A EventSourcedBehavior that is enforcing that replies to commands are not forgotten. There will be compilation errors if the returned effect isn't a ReplyEffect, which can be created with
Effects().reply
,Effects().noReply
, Effect.thenReply, or Effect.thenNoReply.- Annotations
- @ApiMayChange()
-
abstract
class
ReplyEffect[+Event, State] extends Effect[Event, State]
EventSourcedBehaviorWithEnforcedReplies can be used to enforce that replies are not forgotten.
EventSourcedBehaviorWithEnforcedReplies 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
Effects().reply
,Effects().noReply
, Effect.thenReply, or Effect.thenNoReply.- Annotations
- @DoNotInherit()
Value Members
- object CommandHandlerBuilder
- object CommandHandlerBuilderByState
- object EventHandlerBuilder
- object EventHandlerBuilderByState