From ed7b51e4d4e4e0eed6cc70000f588e9231740c9a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jonas=20Bon=C3=A9r?= Date: Thu, 8 Apr 2010 17:03:48 +0200 Subject: [PATCH 1/2] removed Actor.remoteActor factory method since it does not work --- akka-core/src/main/scala/actor/Actor.scala | 23 ---------------------- 1 file changed, 23 deletions(-) diff --git a/akka-core/src/main/scala/actor/Actor.scala b/akka-core/src/main/scala/actor/Actor.scala index 113fab5f32..2aea63bc4c 100644 --- a/akka-core/src/main/scala/actor/Actor.scala +++ b/akka-core/src/main/scala/actor/Actor.scala @@ -151,29 +151,6 @@ object Actor extends Logging { def receive = body } - /** - * Use to create an anonymous event-driven remote actor. - *

- * The actor is created with a 'permanent' life-cycle configuration, which means that - * if the actor is supervised and dies it will be restarted. - *

- * The actor is started when created. - * Example: - *

-   * import Actor._
-   *
-   * val a = remoteActor("localhost", 9999) {
-   *   case msg => ... // handle message
-   * }
-   * 
- */ - 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. *

From 441ad4085659b46748c47851a327f50065778b93 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jonas=20Bon=C3=A9r?= Date: Thu, 8 Apr 2010 17:05:59 +0200 Subject: [PATCH 2/2] improved scaladoc for Actor.scala --- akka-core/src/main/scala/actor/Actor.scala | 1 + 1 file changed, 1 insertion(+) diff --git a/akka-core/src/main/scala/actor/Actor.scala b/akka-core/src/main/scala/actor/Actor.scala index 2aea63bc4c..4bc3a9dc31 100644 --- a/akka-core/src/main/scala/actor/Actor.scala +++ b/akka-core/src/main/scala/actor/Actor.scala @@ -520,6 +520,7 @@ trait Actor extends TransactionManagement with Logging { /** * Sends a message asynchronously and waits on a future for a reply message. + * Uses the time-out defined in the Actor. *

* It waits on the reply either until it receives it (in the form of Some(replyMessage)) * or until the timeout expires (which will return None). E.g. send-and-receive-eventually semantics.