0
comment
comment
on 11/27/2010 6:02 AM
What’s new in Akka 1.0-RC1 is that HotSwap now takes the following signature:
case class HotSwap(code: ActorRef => Actor.Receive, discardOld: Boolean = true)
Before it only had:
case class HotSwap(code: Actor.Receive)
So what’s new is that you can use the “discardOld” parameter to control if you want behaviors to be stacked or not. “discardOld = true” will essentially issue an “unbecome” before it applies the new code.
The problem with HotSwap before was that you couldn’t have any reference to “self”, and [...]