[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/curre

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 = new

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 ad

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 wrote: > <3 pigdog > > > On Mon, Jul 14, 2014 at 1:24 PM, Konrad Malawski < > konrad.malaw...

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 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... Op

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 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 > wrote: > >> You know it's Victor's code if there's pigdogs inside :-)

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 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 1:26 PM, √ikto

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 wrote: > > > > On Mon, Jul 14, 2014 at 1:26 PM, Konrad Malawski > wrote: > >> You know it's Victor's code if there's pigdogs inside :-) >> >> PS: I'm not sure if this a pattern popular enoug

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 M

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 We