Object

akka.persistence.typed.scaladsl

PersistentActor

Related Doc: package scaladsl

Permalink

object PersistentActor

Source
PersistentActor.scala
Linear Supertypes
Content Hierarchy
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. PersistentActor
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Type Members

  1. sealed abstract class ChainableEffect[Event, State] extends Effect[Event, State]

    Permalink

    Not for user extension

    Not for user extension

    Annotations
    @DoNotInherit()
  2. class CommandHandler[Command, Event, State] extends AnyRef

    Permalink

    CommandHandler defines command handlers and partial function for other signals, e.g.

    CommandHandler defines command handlers and partial function for other signals, e.g. Termination messages if watch is used. CommandHandler is an immutable class.

    Annotations
    @DoNotInherit()
  3. type CommandToEffect[Command, Event, State] = (ActorContext[Command], State, Command) ⇒ Effect[Event, State]

    Permalink
  4. sealed abstract class Effect[+Event, State] extends AnyRef

    Permalink

    Instances are created through the factories in the Effect companion object.

    Instances are created through the factories in the Effect companion object.

    Not for user extension.

    Annotations
    @DoNotInherit()
  5. type SignalHandler[Command, Event, State] = PartialFunction[(ActorContext[Command], State, Signal), Effect[Event, State]]

    Permalink

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. object CommandHandler

    Permalink

    The CommandHandler defines how to act on commands and partial function for other signals, e.g.

    The CommandHandler defines how to act on commands and partial function for other signals, e.g. Termination messages if watch is used.

    Note that you can have different command handlers based on current state by using CommandHandler#byState.

  5. object Effect

    Permalink

    Factories for effects - how a persitent actor reacts on a command

  6. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  7. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  8. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  9. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  10. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  11. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  12. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  13. def immutable[Command, Event, State](persistenceId: String, initialState: State, commandHandler: CommandHandler[Command, Event, State], eventHandler: (State, Event) ⇒ State): PersistentBehavior[Command, Event, State]

    Permalink

    Create a Behavior for a persistent actor.

  14. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  15. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  16. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  17. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  18. def persistentEntity[Command, Event, State](persistenceIdFromActorName: (String) ⇒ String, initialState: State, commandHandler: CommandHandler[Command, Event, State], eventHandler: (State, Event) ⇒ State): PersistentBehavior[Command, Event, State]

    Permalink

    Create a Behavior for a persistent actor in Cluster Sharding, when the persistenceId is not known until the actor is started and typically based on the entityId, which is the actor name.

    Create a Behavior for a persistent actor in Cluster Sharding, when the persistenceId is not known until the actor is started and typically based on the entityId, which is the actor name.

    TODO This will not be needed when it can be wrapped in Actor.deferred.

  19. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  20. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  21. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  22. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  23. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from AnyRef

Inherited from Any

Ungrouped