aboutsummaryrefslogtreecommitdiff
path: root/kamon-core/src/main/scala/test/PingPong.scala
diff options
context:
space:
mode:
authorIvan Topolnak <ivantopo@gmail.com>2013-09-10 18:35:25 -0300
committerIvan Topolnak <ivantopo@gmail.com>2013-09-10 18:35:25 -0300
commit9382ce9d66b5d6bfef515cee56f40aa178920335 (patch)
tree0a9583fdd0ff44a5a086a89924f60a967c345f2f /kamon-core/src/main/scala/test/PingPong.scala
parente457fb4d3b8535c27343c80c45fdbe7fa7a93dae (diff)
downloadKamon-9382ce9d66b5d6bfef515cee56f40aa178920335.tar.gz
Kamon-9382ce9d66b5d6bfef515cee56f40aa178920335.tar.bz2
Kamon-9382ce9d66b5d6bfef515cee56f40aa178920335.zip
Simple instrumentation just for keeping the uow.
Diffstat (limited to 'kamon-core/src/main/scala/test/PingPong.scala')
-rw-r--r--kamon-core/src/main/scala/test/PingPong.scala7
1 files changed, 5 insertions, 2 deletions
diff --git a/kamon-core/src/main/scala/test/PingPong.scala b/kamon-core/src/main/scala/test/PingPong.scala
index f9d6869c..6ed17ec6 100644
--- a/kamon-core/src/main/scala/test/PingPong.scala
+++ b/kamon-core/src/main/scala/test/PingPong.scala
@@ -1,6 +1,6 @@
package test
-import akka.actor.{Props, Actor, ActorSystem}
+import akka.actor.{Deploy, Props, Actor, ActorSystem}
object PingPong extends App {
@@ -22,8 +22,11 @@ case object Ping
case object Pong
class Pinger extends Actor {
+ val ponger = context.actorOf(Props[Ponger], "ponger#")
+ val ponger2 = context.actorOf(Props[Ponger], "ponger#")
+
def receive = {
- case Pong => sender ! Ping
+ case Pong => ponger ! Ping
}
}