The message handler
Exception handler, called if the message handler throws any Throwable
.
Execution strategy, for example, a strategy that is backed by an ExecutorService
Alias for apply
Pass the message a
to the mailbox of this actor
The message handler
Exception handler, called if the message handler throws any Throwable
.
Execution strategy, for example, a strategy that is backed by an ExecutorService
Processes messages of type
A
, one at a time. Messages are submitted to the actor with the method!
. Processing is typically performed asynchronously, this is controlled by the providedstrategy
.Memory consistency guarantee: when each message is processed by the
handler
, any memory that it mutates is guaranteed to be visible by thehandler
when it processes the next message, even if thestrategy
runs the invocations ofhandler
on separate threads. This is achieved because theActor
reads a volatile memory location before entering its event loop, and writes to the same location before suspending.Implementation based on non-intrusive MPSC node-based queue, described by Dmitriy Vyukov: http://www.1024cores.net/home/lock-free-algorithms/queues/non-intrusive-mpsc-node-based-queue
The type of messages accepted by this actor.
The message handler
Exception handler, called if the message handler throws any
Throwable
.Execution strategy, for example, a strategy that is backed by an
ExecutorService