Re: [akka-user] How to create typed actor router?

2014-07-16 Thread simafengyun
Thank you very much, Mala But I have no idea about scala. Do you have code in java?Thanks On Monday, July 14, 2014 7:25:02 PM UTC+8, Konrad Malawski wrote: Hello there, Since TypedActors are implemented as plain message sends (the message representing the proxy method calls is called

Re: [akka-user] How to create typed actor router?

2014-07-16 Thread Konrad Malawski
The linked pull request includes a Java version, see: https://github.com/akka/akka/pull/15540/files#diff-4161415cbe164e514bbc16114e346152R199 The docs are published automatically as snapshot: http://doc.akka.io/docs/akka/snapshot/java/typed-actors.html#Typed_router_pattern Happy hakking! On

[akka-user] How to create typed actor router?

2014-07-14 Thread simafengyun
Hi All, I want to use the typed actor's router. But I only see the untyped actor router code. Do you have the java code for creating typed actor router? Thanks -- Read the docs: http://akka.io/docs/ Check the FAQ: http://doc.akka.io/docs/akka/current/additional/faq.html

Re: [akka-user] How to create typed actor router?

2014-07-14 Thread Konrad Malawski
Hello there, Since TypedActors are implemented as plain message sends (the message representing the proxy method calls is called MethodCall), you can simply do an untyped router, and then add a typed proxy before it: TypedActor Router must { work in { val t1 = newFooBar val t2 =

Re: [akka-user] How to create typed actor router?

2014-07-14 Thread √iktor Ҡlang
3 pigdog On Mon, Jul 14, 2014 at 1:24 PM, Konrad Malawski konrad.malaw...@typesafe.com wrote: Hello there, Since TypedActors are implemented as plain message sends (the message representing the proxy method calls is called MethodCall), you can simply do an untyped router, and then add a

Re: [akka-user] How to create typed actor router?

2014-07-14 Thread Konrad Malawski
You know it's Victor's code if there's pigdogs inside :-) PS: I'm not sure if this a pattern popular enough to embrace and add it to the docs... Opinions? On Mon, Jul 14, 2014 at 1:26 PM, √iktor Ҡlang viktor.kl...@gmail.com wrote: 3 pigdog On Mon, Jul 14, 2014 at 1:24 PM, Konrad Malawski

Re: [akka-user] How to create typed actor router?

2014-07-14 Thread Konrad Malawski
Viktor's* - I keep mistyping your name recently, don't know why. Sorry, Viktor. ;-) On Mon, Jul 14, 2014 at 1:26 PM, Konrad Malawski kt...@typesafe.com wrote: You know it's Victor's code if there's pigdogs inside :-) PS: I'm not sure if this a pattern popular enough to embrace and add it to

Re: [akka-user] How to create typed actor router?

2014-07-14 Thread √iktor Ҡlang
It's alright Kônräd :) On Mon, Jul 14, 2014 at 1:29 PM, Konrad Malawski kt...@typesafe.com wrote: Viktor's* - I keep mistyping your name recently, don't know why. Sorry, Viktor. ;-) On Mon, Jul 14, 2014 at 1:26 PM, Konrad Malawski kt...@typesafe.com wrote: You know it's Victor's code if

Re: [akka-user] How to create typed actor router?

2014-07-14 Thread Jonas Bonér
On Mon, Jul 14, 2014 at 1:26 PM, Konrad Malawski kt...@typesafe.com wrote: You know it's Victor's code if there's pigdogs inside :-) PS: I'm not sure if this a pattern popular enough to embrace and add it to the docs... Opinions? I think it is useful enough. ​ On Mon, Jul 14, 2014 at

Re: [akka-user] How to create typed actor router?

2014-07-14 Thread Konrad Malawski
Pull request here: https://github.com/akka/akka/pull/15540 On Mon, Jul 14, 2014 at 2:33 PM, Jonas Bonér jo...@jonasboner.com wrote: On Mon, Jul 14, 2014 at 1:26 PM, Konrad Malawski kt...@typesafe.com wrote: You know it's Victor's code if there's pigdogs inside :-) PS: I'm not sure if