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

@ -39,7 +39,7 @@ import akka.event.japi.ScanningEventBus;
//#scanning-bus
//#actor-bus
import akka.event.japi.ActorEventBus;
import akka.event.japi.ManagedActorEventBus;
//#actor-bus
@ -232,7 +232,7 @@ public class EventBusDocTest {
static
//#actor-bus
public class ActorBusImpl extends ActorEventBus<Notification> {
public class ActorBusImpl extends ManagedActorEventBus<Notification> {
// the ActorSystem will be used for book-keeping operations, such as subscribers terminating
public ActorBusImpl(ActorSystem system) {
@ -304,7 +304,7 @@ public class EventBusDocTest {
}
@Test
public void demonstrateActorClassification() {
public void demonstrateManagedActorClassification() {
//#actor-bus-test
ActorRef observer1 = new JavaTestKit(system).getRef();
ActorRef observer2 = new JavaTestKit(system).getRef();

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: