Changes the Actor's behavior to become the new 'Receive' (PartialFunction[Any, Unit]) handler.

Changes the Actor's behavior to become the new 'Receive' (PartialFunction[Any, Unit]) handler.
This method acts upon the behavior stack as follows:

if discardOld = true it will replace the top element (i.e. the current behavior)

if discardOld = false it will keep the current behavior and push the given one atop

The default of replacing the current behavior on the stack has been chosen to avoid memory
leaks in case client code is written without consulting this documentation first (i.e.
always pushing new behaviors and never issuing an unbecome())

Defines the inactivity timeout after which the sending of a akka.actor.ReceiveTimeout message is triggered.
When specified, the receive function should be able to handle a akka.actor.ReceiveTimeout message.
1 millisecond is the minimum supported timeout.

Please note that the receive timeout might fire and enqueue the ReceiveTimeout message right after
another message was enqueued; hence it is not guaranteed that upon reception of the receive
timeout there must have been an idle period beforehand as configured via this method.

Once set, the receive timeout stays in effect (i.e. continues firing repeatedly after inactivity
periods). Pass in Duration.Undefined to switch off this feature.

Messages marked with NotInfluenceReceiveTimeout will not reset the timer. This can be useful when
ReceiveTimeout should be fired by external inactivity but not influenced by internal activity,
e.g. scheduled tick messages.

Stop the actor pointed to by the given akka.actor.ActorRef; this is
an asynchronous operation, i.e.

Stop the actor pointed to by the given akka.actor.ActorRef; this is
an asynchronous operation, i.e. involves a message send.
If this method is applied to the self reference from inside an Actor
then that Actor is guaranteed to not process any further messages after
this call; please note that the processing of the current message will
continue, this method does not immediately terminate this actor.

Construct an akka.actor.ActorSelection from the given path, which is
parsed for wildcards (these are replaced by regular expressions
internally).

Construct an akka.actor.ActorSelection from the given path, which is
parsed for wildcards (these are replaced by regular expressions
internally). No attempt is made to verify the existence of any part of
the supplied path, it is recommended to send a message and gather the
replies in order to resolve the matching set of actors.

Construct an akka.actor.ActorSelection from the given path, which is
parsed for wildcards (these are replaced by regular expressions
internally).

Construct an akka.actor.ActorSelection from the given path, which is
parsed for wildcards (these are replaced by regular expressions
internally). No attempt is made to verify the existence of any part of
the supplied path, it is recommended to send a message and gather the
replies in order to resolve the matching set of actors.