DOC: Routing (Java). See #1600

This commit is contained in:
Patrik Nordwall 2012-01-05 17:59:19 +01:00
parent a8c6a0d891
commit ed2b65c402
13 changed files with 670 additions and 76 deletions

View file

@ -0,0 +1,15 @@
/**
* Copyright (C) 2009-2012 Typesafe Inc. <http://www.typesafe.com>
*/
package akka.docs.jrouting;
import akka.actor.UntypedActor;
//#printlnActor
public class PrintlnActor extends UntypedActor {
public void onReceive(Object msg) {
System.out.println(String.format("Received message '%s' in actor %s", msg, getSelf().path().name()));
}
}
//#printlnActor