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
.
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.
Allows actors with a stackable org.eligosource.eventsourced.core.Receiver, org.eligosource.eventsourced.core.Emitter and/or org.eligosource.eventsourced.core.Eventsourced modification to change their behavior with
become()
andunbecome()
without loosing the functionality implemented by these traits.On the other hand, actors that use
context.become()
to change their behavior will loose theirReceiver
,Emitter
and/orEventsourced
functionality.