Hi Brice,

the Routers (as in those which bypass the head actor’s mailbox) are meant
for a very specific use case, and their optimizations come with certain
restrictions as you discover. What you want to achieve can be done by using
the RoutingLogic inside a regular router, which gives you all the
flexibility you need to create the routees as you want.

Regards,

Roland



On Mon, May 5, 2014 at 11:39 AM, Brice Figureau
<[email protected]>wrote:

> Hi,
>
> I'm porting my project from Akka 2.2.x to 2.3.2.
> In this project I have a custom router that was modelled from the
> VoteCountRouter here:
> http://doc.akka.io/docs/akka/2.2.4/scala/routing.html#custom-router
>
> This area changed a lot in 2.3 and I have some difficulties porting my
> code to this new scheme.
>
> In the previous version, the custom router was responsible for creating
> the routee and also for the logic.
>
> In the new version, if I make a Group, I need to provide the routee
> paths, but in my code I actually need to create the routees with some
> specific classes or parameters (so that needs to be programatically,
> worst: this is a router of routers in fact). What I lack is an actor
> context to create my routee below the router.
>
> Can someone help me porting this code by showing a small example on how
> to rewrite the VoteCountRouter example of 2.2?
>
> Thanks!
> --
> Brice Figureau
> My Blog: http://www.masterzen.fr/
>
> --
> >>>>>>>>>>      Read the docs: http://akka.io/docs/
> >>>>>>>>>>      Check the FAQ:
> http://doc.akka.io/docs/akka/current/additional/faq.html
> >>>>>>>>>>      Search the archives:
> https://groups.google.com/group/akka-user
> ---
> You received this message because you are subscribed to the Google Groups
> "Akka User List" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To post to this group, send email to [email protected].
> Visit this group at http://groups.google.com/group/akka-user.
> For more options, visit https://groups.google.com/d/optout.
>



-- 
Akka Team
Typesafe - The software stack for applications that scale
Blog: letitcrash.com
Twitter: @akkateam

-- 
>>>>>>>>>>      Read the docs: http://akka.io/docs/
>>>>>>>>>>      Check the FAQ: 
>>>>>>>>>> http://doc.akka.io/docs/akka/current/additional/faq.html
>>>>>>>>>>      Search the archives: https://groups.google.com/group/akka-user
--- 
You received this message because you are subscribed to the Google Groups "Akka 
User List" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/akka-user.
For more options, visit https://groups.google.com/d/optout.

Reply via email to