Correction of Java doc Creating Actors Remotely, see #2537
This commit is contained in:
parent
c0f60da8cc
commit
ee65dbf184
5 changed files with 48 additions and 45 deletions
|
|
@ -12,11 +12,11 @@ import akka.remote.RemoteScope
|
|||
|
||||
object RemoteDeploymentDocSpec {
|
||||
|
||||
//#sample-actor
|
||||
class Echo extends Actor {
|
||||
def receive = {
|
||||
case x ⇒ sender ! self
|
||||
}
|
||||
def receive = { case _ ⇒ sender ! self }
|
||||
}
|
||||
//#sample-actor
|
||||
|
||||
}
|
||||
|
||||
|
|
@ -49,4 +49,12 @@ class RemoteDeploymentDocSpec extends AkkaSpec("""
|
|||
one must be === two
|
||||
}
|
||||
|
||||
"demonstrate sampleActor" in {
|
||||
//#sample-actor
|
||||
|
||||
val actor = system.actorOf(Props[Echo], "sampleActor")
|
||||
actor ! "Pretty slick"
|
||||
//#sample-actor
|
||||
}
|
||||
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue