Package

akka.persistence.typed

javadsl

Permalink

package javadsl

Content Hierarchy
Visibility
  1. Public
  2. All

Type Members

  1. final class ByStateCommandHandlerBuilder[Command, Event, State] extends AnyRef

    Permalink

    Mutable builder for nested Java CommandHandlers where different states should have different command handlers.

    Mutable builder for nested Java CommandHandlers where different states should have different command handlers. CommandHandler per state are added with the match methods and finally a CommandHandler is created with ByStateCommandHandlerBuilder#build.

    Match statements are appended and evaluated in order, the first one to match is used. If no match is found when evaluating the built CommandHandler for a given state a scala.MatchError is thrown.

  2. trait CommandHandler[Command, Event, State] extends AnyRef

    Permalink

    FunctionalInterface for reacting on commands

    FunctionalInterface for reacting on commands

    Used with CommandHandlerBuilder to setup the behavior of a PersistentBehavior

    Annotations
    @FunctionalInterface()
  3. final class CommandHandlerBuilder[Command, Event, State] extends AnyRef

    Permalink
  4. trait CommandToEffect[Command, MsgCommand <: Command, Event, State] extends AnyRef

    Permalink

    FunctionalInterface for reacting on signals

    FunctionalInterface for reacting on signals

    Used with CommandHandlerBuilder to setup the behavior of a PersistentBehavior

    Annotations
    @FunctionalInterface()
  5. abstract class Effect[+Event, State] extends AnyRef

    Permalink

    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 in the respective Java and Scala DSL packages.

    Not intended for user extension.

    Annotations
    @DoNotInherit()
  6. sealed class EffectFactories[Command, Event, State] extends AnyRef

    Permalink
    Annotations
    @DoNotInherit()
  7. trait EventHandler[Event, State] extends AnyRef

    Permalink

    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 PersistentBehavior

    Annotations
    @FunctionalInterface()
  8. final class EventHandlerBuilder[Event, State >: Null] extends AnyRef

    Permalink
  9. abstract class PersistentBehavior[Command, Event, State >: Null] extends UntypedBehavior[Command]

    Permalink
    Annotations
    @ApiMayChange()

Ungrouped