2012-01-05 17:59:19 +01:00
|
|
|
/**
|
|
|
|
|
* Copyright (C) 2009-2012 Typesafe Inc. <http://www.typesafe.com>
|
|
|
|
|
*/
|
2012-05-22 11:37:09 +02:00
|
|
|
package docs.jrouting;
|
2012-01-05 17:59:19 +01:00
|
|
|
|
|
|
|
|
import akka.actor.UntypedActor;
|
|
|
|
|
|
|
|
|
|
//#printlnActor
|
|
|
|
|
public class PrintlnActor extends UntypedActor {
|
|
|
|
|
public void onReceive(Object msg) {
|
2012-09-26 10:56:25 +02:00
|
|
|
System.out.println(String.format("Received message '%s' in actor %s",
|
|
|
|
|
msg, getSelf().path().name()));
|
2012-01-05 17:59:19 +01:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
//#printlnActor
|