org.eligosource.eventsourced.core
Java API.
Java API.
Puts behavior
on the hotswap stack. This will preserve the behavior of this stackable
trait. Actors that additionally want to replace the behavior of this stackable trait should
call getContext().become(...)
.
new behavior
if true
, unbecome()
will be called prior to pushing behavior
.
Java API.
Java API.
Puts behavior
on the hotswap stack. This will preserve the behavior of this stackable
trait. Actors that additionally want to replace the behavior of this stackable trait should
call getContext().become(...)
. The existing (old) behavior will be discarded.
new behavior
Puts behavior
on the hotswap stack.
Puts behavior
on the hotswap stack. This will preserve the behavior of this stackable
trait. Actors that additionally want to replace the behavior of this stackable trait should
call context.become(...)
.
new behavior
if true
, unbecome()
will be called prior to pushing behavior
.
Calls super.postStop
and then de-registers this processor from
org.eligosource.eventsourced.core.EventsourcingExtension.
Calls super.postStop
and then de-registers this processor from
org.eligosource.eventsourced.core.EventsourcingExtension.
Reverts the behavior to the previous one on the hotswap stack.
Reverts the behavior to the previous one on the hotswap stack. This will preserve the behavior of this stackable trait.
Stackable modification for making an actor persistent via event-sourcing (or command-sourcing). It writes any input org.eligosource.eventsourced.core.Message to a journal. Input messages of any other type are not journaled. Example:
If the
Eventsourced
trait is used in combination with org.eligosource.eventsourced.core.Receiver or org.eligosource.eventsourced.core.Emitter,Eventsourced
must be the last modification:The
Eventsourced
trait can additionally be combined with the stackable org.eligosource.eventsourced.core.Confirm trait.org.eligosource.eventsourced.core.EventsourcingExtension