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
-
trait
CommandHandlerWithReply[Command, Event, State] extends CommandHandler[Command, Event, State]
FunctionalInterface for reacting on commands
FunctionalInterface for reacting on commands
Used with CommandHandlerWithReplyBuilder to setup the behavior of a EventSourcedBehaviorWithEnforcedReplies
- Annotations
- @FunctionalInterface()
- final class CommandHandlerWithReplyBuilder[Command, Event, State] extends AnyRef
- final class CommandHandlerWithReplyBuilderByState[Command, Event, S <: State, State] extends AnyRef
-
trait
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.Instances of
Effect
are available through factories EventSourcedBehavior.Effect.Not intended for user extension.
- Annotations
- @DoNotInherit()
-
abstract
class
EffectBuilder[+Event, State] extends Effect[Event, State]
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
thenRun
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 an event sourced actor reacts on a command.
Factory methods for creating Effect directives - how an event sourced 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, Event] extends AnyRef
- final class EventHandlerBuilderByState[S <: State, State, Event] extends AnyRef
-
abstract
class
EventSourcedBehavior[Command, Event, State] extends DeferredBehavior[Command]
- Annotations
- @ApiMayChange()
-
abstract
class
EventSourcedBehaviorWithEnforcedReplies[Command, Event, State] extends EventSourcedBehavior[Command, Event, State]
A EventSourcedBehavior that is enforcing that replies to commands are not forgotten.
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()
-
trait
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()
-
abstract
class
RetentionCriteria extends AnyRef
Criteria for retention/deletion of snapshots and events.
- final class SignalHandler[State] extends AnyRef
-
final
class
SignalHandlerBuilder[State] extends AnyRef
Mutable builder for handling signals in EventSourcedBehavior
Mutable builder for handling signals in EventSourcedBehavior
Not for user instantiation, use EventSourcedBehavior#newSignalHandlerBuilder() to get an instance.
-
abstract
class
SnapshotCountRetentionCriteria extends RetentionCriteria
- Annotations
- @DoNotInherit()
Value Members
- object CommandHandlerBuilder
- object CommandHandlerBuilderByState
- object CommandHandlerWithReplyBuilder
- object CommandHandlerWithReplyBuilderByState
- object EventHandlerBuilder
- object EventHandlerBuilderByState
-
object
RetentionCriteria
Criteria for retention/deletion of snapshots and events.
- object SignalHandler
- object SignalHandlerBuilder