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
.
Positively or negatively confirms the receipt of the current event message.
Positively or negatively confirms the receipt of the current event message.
true
for a positive receipt confirmation, false
for a negative one.
if the the last message received by this receiver is not of type org.eligosource.eventsourced.core.Message
Current event message.
Current event message.
if the the last message received by this receiver is not of type org.eligosource.eventsourced.core.Message
messageOption
Current event message option.
Current event message option. None
if the last message received by this receiver
is not of type org.eligosource.eventsourced.core.Message.
Sequence number of current event message
Sequence number of current event message
if the the last message received by this receiver is not of type org.eligosource.eventsourced.core.Message
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 actors to extract the
event
from a received event org.eligosource.eventsourced.core.Message and calling the modified actor'sreceive
method with thatevent
. Example:Event messages received by concrete
Receiver
s are stored in a private field and can be obtained via themessage
ormessageOption
method.The
Receiver
trait can also be used in combination with other stackable traits of the library (such as org.eligosource.eventsourced.core.Confirm or org.eligosource.eventsourced.core.Eventsourced), for example: