Object

akka.persistence.multidc.javadsl

EffectFactory

Related Doc: package javadsl

Permalink

object EffectFactory extends EffectFactories[Nothing, Nothing, Nothing]

Singleton object for the effect factories, do not use directly, instead use ReplicatedEntity#Effect

Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. EffectFactory
  2. EffectFactories
  3. AnyRef
  4. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

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. final def asInstanceOf[T0]: T0

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

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

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

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

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

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

    Permalink
    Definition Classes
    AnyRef → Any
  11. final def isInstanceOf[T0]: Boolean

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

    Permalink
    Definition Classes
    AnyRef
  13. final def none: Effect[Nothing, Nothing]

    Permalink

    Signal completion of handling a command, without applying any external effects.

    Signal completion of handling a command, without applying any external effects.

    Definition Classes
    EffectFactories
  14. final def notify(): Unit

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

    Permalink
    Definition Classes
    AnyRef
  16. def passivate(msg: Nothing): Effect[Nothing, Nothing]

    Permalink

    Allows for graceful passivation of the replicated entity when used with Cluster Sharding, without the risk of dropping messages that are currently enqueued in its mailbox.

    Allows for graceful passivation of the replicated entity when used with Cluster Sharding, without the risk of dropping messages that are currently enqueued in its mailbox.

    Using sharding also triggers automatic passivation based on inactivity, see auto-passivate-after in reference.conf for more details.

    Passivation is often implemented in order to safely stop the replicated entity, and free up memory for use for other active entities. This can be done as direct effect of handling a Command or by defining receive timeout (context.setReceiveTimeout).

    If a message is already enqueued to the entity when it stops itself the enqueued message in the mailbox will be dropped. Passivation is implemented by notifying the entity's parent ShardRegion using a Passivate message, same as in Cluster Sharding.

    The specified wrapped stopMessage will be sent back to the entity, which is then supposed to stop itself. Incoming messages will be buffered by the ShardRegion between reception of Passivate and termination of the entity. Such buffered messages are thereafter delivered to a new incarnation of the entity.

    If the replicated entity is used without sharding the command is sent to the entity itself directly.

    Definition Classes
    EffectFactories
  17. final def persist[A <: Nothing, B <: Nothing, C <: Nothing](evt1: A, evt2: B, evt3: C): Effect[Nothing, Nothing]

    Permalink

    Has the same behaviour as persist with a list containing [evt1, evt2, evt3]

    Has the same behaviour as persist with a list containing [evt1, evt2, evt3]

    Definition Classes
    EffectFactories
  18. final def persist[A <: Nothing, B <: Nothing](evt1: A, evt2: B): Effect[Nothing, Nothing]

    Permalink

    Has the same behaviour as persist with a list containing [evt1, evt2]

    Has the same behaviour as persist with a list containing [evt1, evt2]

    Definition Classes
    EffectFactories
  19. def persist(eventOpt: Optional[Nothing]): Effect[Nothing, Nothing]

    Permalink

    If eventOpt contains an event persist it, if it is empty do nothing (EffectFactories#none).

    If eventOpt contains an event persist it, if it is empty do nothing (EffectFactories#none).

    Definition Classes
    EffectFactories
  20. final def persist(events: List[Nothing]): Effect[Nothing, Nothing]

    Permalink

    Persist all of a the given events.

    Persist all of a the given events. Each event will be applied through applyEffect separately but not until all events has been persisted. If an afterCallBack is added through Effect#andThen that will invoked after all the events has been persisted.

    Definition Classes
    EffectFactories
  21. final def persist(event: Nothing): Effect[Nothing, Nothing]

    Permalink

    Persist a single event

    Persist a single event

    Definition Classes
    EffectFactories
  22. final def stop: Effect[Nothing, Nothing]

    Permalink

    Stops the replicated entity after handling the current command.

    Stops the replicated entity after handling the current command. It still is possible to attach andThen callbacks, to be executed before the entity stops.

    Definition Classes
    EffectFactories
  23. final def synchronized[T0](arg0: ⇒ T0): T0

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

    Permalink
    Definition Classes
    AnyRef → Any
  25. final def unhandled: Effect[Nothing, Nothing]

    Permalink

    Do-nothing but mark command as unhandled, this will lead to command being passed to the regular akka.actor.Actor#unhandled logic being invoked for the command.

    Do-nothing but mark command as unhandled, this will lead to command being passed to the regular akka.actor.Actor#unhandled logic being invoked for the command.

    Definition Classes
    EffectFactories
  26. final def wait(): Unit

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

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

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

Inherited from AnyRef

Inherited from Any

Ungrouped