removed Actor.remoteActor factory method since it does not work

This commit is contained in:
Jonas Bonér 2010-04-08 17:03:48 +02:00
parent 1b2451f131
commit 34dee73c71

View file

@ -151,29 +151,6 @@ object Actor extends Logging {
def receive = body
}
/**
* Use to create an anonymous event-driven remote actor.
* <p/>
* The actor is created with a 'permanent' life-cycle configuration, which means that
* if the actor is supervised and dies it will be restarted.
* <p/>
* The actor is started when created.
* Example:
* <pre>
* import Actor._
*
* val a = remoteActor("localhost", 9999) {
* case msg => ... // handle message
* }
* </pre>
*/
def remoteActor(hostname: String, port: Int)(body: PartialFunction[Any, Unit]): Actor = new Actor() {
lifeCycle = Some(LifeCycle(Permanent))
makeRemote(hostname, port)
start
def receive = body
}
/**
* Use to create an anonymous event-driven actor with both an init block and a message loop block.
* <p/>