Removing 1-entry lists
This commit is contained in:
parent
6cdb0126ad
commit
519aa39f18
1 changed files with 2 additions and 6 deletions
|
|
@ -474,9 +474,7 @@ Upgrade
|
||||||
-------
|
-------
|
||||||
|
|
||||||
Akka supports hotswapping the Actor’s message loop (e.g. its implementation) at
|
Akka supports hotswapping the Actor’s message loop (e.g. its implementation) at
|
||||||
runtime.
|
runtime: Invoke the ``become`` method from within the Actor.
|
||||||
|
|
||||||
* Invoke the ``become`` method from within the Actor.
|
|
||||||
|
|
||||||
Become takes a ``PartialFunction[Any, Unit]`` that implements
|
Become takes a ``PartialFunction[Any, Unit]`` that implements
|
||||||
the new message handler. The hotswapped code is kept in a Stack which can be
|
the new message handler. The hotswapped code is kept in a Stack which can be
|
||||||
|
|
@ -548,9 +546,7 @@ Downgrade
|
||||||
---------
|
---------
|
||||||
|
|
||||||
Since the hotswapped code is pushed to a Stack you can downgrade the code as
|
Since the hotswapped code is pushed to a Stack you can downgrade the code as
|
||||||
well.
|
well, all you need to do is to: Invoke the ``unbecome`` method from within the Actor.
|
||||||
|
|
||||||
* Invoke the ``unbecome`` method from within the Actor.
|
|
||||||
|
|
||||||
This will pop the Stack and replace the Actor's implementation with the
|
This will pop the Stack and replace the Actor's implementation with the
|
||||||
``PartialFunction[Any, Unit]`` that is at the top of the Stack.
|
``PartialFunction[Any, Unit]`` that is at the top of the Stack.
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue