The reactor's behavior is specified by implementing this method.
The reactor's behavior is specified by implementing this method.
Sends msg
to this ReplyReactor
(asynchronous).
Sends msg
to this ReplyReactor
(asynchronous).
the message to send
Sends msg
to this ReplyReactor
and immediately returns a future representing
the reply value.
Sends msg
to this ReplyReactor
and immediately returns a future representing
the reply value. The reply is post-processed using the partial function
handler
. This also allows to recover a more precise type for the reply
value.
the message to be sent
the function to be applied to the response
the future
Sends msg
to this ReplyReactor
and immediately returns a future representing
the reply value.
Sends msg
to this ReplyReactor
and immediately returns a future representing
the reply value.
the message to be sent
the future
Sends msg
to this ReplyReactor
and awaits reply (synchronous) within
msec
milliseconds.
Sends msg
to this ReplyReactor
and awaits reply (synchronous) within
msec
milliseconds.
the time span before timeout
the message to be sent
None
in case of timeout, otherwise
Some(x)
where x
is the reply
Sends msg
to this ReplyReactor
and awaits reply (synchronous).
Sends msg
to this ReplyReactor
and awaits reply (synchronous).
the message to be sent
the reply
Continues with the execution of the closure registered as
continuation following andThen
.
Continues with the execution of the closure registered as
continuation following andThen
. Continues with the execution
of the next loop iteration when invoked inside the body of loop
or loopWhile
.
This partial function is applied to exceptions that propagate out of this reactor's body.
This partial function is applied to exceptions that propagate out of this reactor's body.
Forwards msg
to this ReplyReactor
(asynchronous).
Forwards msg
to this ReplyReactor
(asynchronous).
the message to forward
Returns the execution state of this ReplyReactor
.
Returns the execution state of this ReplyReactor
.
the execution state
Returns the ReplyReactor
which sent the last received message.
Returns the ReplyReactor
which sent the last received message.
Repeatedly executes body
.
Repeatedly executes body
.
the block to be executed
Repeatedly executes body
while the condition cond
is true
.
Repeatedly executes body
while the condition cond
is true
.
the condition to test
the block to be executed
Enables the composition of suspendable closures using andThen
,
loop
, loopWhile
, etc.
Enables the composition of suspendable closures using andThen
,
loop
, loopWhile
, etc.
Receives a message from this ReplyReactor
's mailbox.
Receives a message from this ReplyReactor
's mailbox.
This method never returns. Therefore, the rest of the computation has to be contained in the actions of the partial function.
a partial function with message patterns and actions
Receives a message from this ReplyReactor
's mailbox within a certain
time span.
Receives a message from this ReplyReactor
's mailbox within a certain
time span.
This method never returns. Therefore, the rest of the computation has to be contained in the actions of the partial function.
the time span before timeout
a partial function with message patterns and actions
Returns the Actor
that is receiving from this reactor.
Returns the Actor
that is receiving from this reactor.
Replies with msg
to the sender.
Replies with msg
to the sender.
Restarts this reactor.
Restarts this reactor.
if the reactor is not in state Actor.State.Terminated
Sends msg
to this reactor (asynchronous) supplying
explicit reply destination.
Sends msg
to this reactor (asynchronous) supplying
explicit reply destination.
the message to send
the reply destination
Starts this reactor.
Starts this reactor. This method is idempotent.
Extends the scala.actors.Reactor trait with methods to reply to the sender of a message. Sending a message to a
ReplyReactor
implicitly passes a reference to the sender together with the message.(Since version 2.11.0) Use the akka.actor package instead. For migration from the scala.actors package refer to the Actors Migration Guide.