package javadsl

Content Hierarchy
Ordering
  1. Alphabetic
Visibility
  1. Public
  2. Protected

Type Members

  1. 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()
  2. final class CommandHandlerBuilder[Command, Event, State] extends AnyRef
  3. final class CommandHandlerBuilderByState[Command, Event, S <: State, State] extends AnyRef
  4. 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()
  5. final class CommandHandlerWithReplyBuilder[Command, Event, State] extends AnyRef
  6. final class CommandHandlerWithReplyBuilderByState[Command, Event, S <: State, State] extends AnyRef
  7. 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()
  8. 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()
  9. 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()
  10. 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()
  11. final class EventHandlerBuilder[State, Event] extends AnyRef
  12. final class EventHandlerBuilderByState[S <: State, State, Event] extends AnyRef
  13. abstract class EventSourcedBehavior[Command, Event, State] extends DeferredBehavior[Command]

    For projects using Java 17 and newer, also see EventSourcedOnCommandBehavior

  14. 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, EffectBuilder.thenReply, or EffectBuilder.thenNoReply.

  15. abstract class EventSourcedOnCommandBehavior[Command, Event, State] extends DeferredBehavior[Command]

    Event sourced behavior for projects built with Java 17 or newer where message handling can be done using switch pattern match.

    Event sourced behavior for projects built with Java 17 or newer where message handling can be done using switch pattern match.

    For building event sourced actors with Java versions before 17, see EventSourcedBehavior

  16. abstract class EventSourcedOnCommandWithReplyBehavior[Command, Event, State] extends DeferredBehavior[Command]

    Event sourced behavior for projects built with Java 17 or newer where message handling can be done using switch pattern match.

    Event sourced behavior for projects built with Java 17 or newer where message handling can be done using switch pattern match.

    Enforces replies to every received command.

    For building event sourced actors with Java versions before 17, see EventSourcedBehavior

  17. abstract class Recovery extends AnyRef

    Strategy for recovery of snapshots and events.

  18. abstract class ReplicatedEventSourcedBehavior[Command, Event, State] extends EventSourcedBehavior[Command, Event, State]

    Base class for replicated event sourced behaviors.

    Base class for replicated event sourced behaviors.

    For projects using Java 17 and newer, also see EventSourcedOnCommandBehavior

  19. abstract class ReplicatedEventSourcedOnCommandBehavior[Command, Event, State] extends EventSourcedOnCommandBehavior[Command, Event, State]

    Base class for replicated event sourced behaviors for projects built with Java 17 or newer where message handling can be done using switch pattern match.

    Base class for replicated event sourced behaviors for projects built with Java 17 or newer where message handling can be done using switch pattern match.

    For building replicated event sourced actors with Java versions before 17, see ReplicatedEventSourcedBehavior

  20. abstract class ReplicatedEventSourcedOnCommandWithReplyBehavior[Command, Event, State] extends EventSourcedOnCommandWithReplyBehavior[Command, Event, State]

    Base class for replicated event sourced behaviors for projects built with Java 17 or newer where message handling can be done using switch pattern match.

    Base class for replicated event sourced behaviors for projects built with Java 17 or newer where message handling can be done using switch pattern match.

    Enforces replies to every received command.

    For building replicated event sourced actors with Java versions before 17, see ReplicatedEventSourcedBehavior

  21. trait ReplicationContext extends AnyRef

    Provides access to replication specific state

    Provides access to replication specific state

    Not for user extension

    Annotations
    @DoNotInherit()
  22. trait ReplicationInterceptor[Event, State] extends AnyRef
    Annotations
    @FunctionalInterface()
  23. 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, EffectBuilder.thenReply, or EffectBuilder.thenNoReply.

    Annotations
    @DoNotInherit()
  24. abstract class RetentionCriteria extends AnyRef

    Criteria for retention/deletion of snapshots and events.

  25. final class SignalHandler[State] extends AnyRef
  26. 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.

  27. abstract class SnapshotCountRetentionCriteria extends RetentionCriteria
    Annotations
    @DoNotInherit()

Value Members

  1. object CommandHandlerBuilder
  2. object CommandHandlerBuilderByState
  3. object CommandHandlerWithReplyBuilder
  4. object CommandHandlerWithReplyBuilderByState
  5. object EventHandlerBuilder
  6. object EventHandlerBuilderByState
  7. object PersistentFSMMigration

    Helper functions for migration from PersistentFSM to Persistence Typed

  8. object Recovery

    Strategy for recovery of snapshots and events.

  9. object ReplicatedEventSourcing
  10. object RetentionCriteria

    Criteria for retention/deletion of snapshots and events.

  11. object SignalHandler
  12. object SignalHandlerBuilder

Ungrouped