Merge pull request #17354 from akka/wip-17342-bc-patriknw

= #17342 Make 2.4 binary compatible with 2.3
This commit is contained in:
Patrik Nordwall 2015-05-12 08:56:44 +02:00
commit 00a481adeb
56 changed files with 1160 additions and 207 deletions

View file

@ -121,12 +121,12 @@ object EventBusDocSpec {
//#actor-bus
import akka.event.ActorEventBus
import akka.event.ActorClassification
import akka.event.ManagedActorClassification
import akka.event.ActorClassifier
final case class Notification(ref: ActorRef, id: Int)
class ActorBusImpl(val system: ActorSystem) extends ActorEventBus with ActorClassifier with ActorClassification {
class ActorBusImpl(val system: ActorSystem) extends ActorEventBus with ActorClassifier with ManagedActorClassification {
type Event = Notification
// is used for extracting the classifier from the incoming events
@ -179,7 +179,7 @@ class EventBusDocSpec extends AkkaSpec {
//#scanning-bus-test
}
"demonstrate ActorClassification" in {
"demonstrate ManagedActorClassification" in {
//#actor-bus-test
val observer1 = TestProbe().ref
val observer2 = TestProbe().ref

View file

@ -115,7 +115,7 @@ type :class:`ActorRef`.
This classification requires an :class:`ActorSystem` in order to perform book-keeping
operations related to the subscribers being Actors, which can terminate without first
unsubscribing from the EventBus. ActorClassification maitains a system Actor which
unsubscribing from the EventBus. ManagedActorClassification maitains a system Actor which
takes care of unsubscribing terminated actors automatically.
The necessary methods to be implemented are illustrated with the following example: