If you're using Scala, just send the three sub-messages as a Tuple3 --
there's no real effort involved.  Or add a case class for it: creating case
classes is near-trivial, and this sort of thing is what they're for.

If you're in Java, then yeah, you probably need to create a wrapper class...

On Tue, Sep 12, 2017 at 10:21 PM, <[email protected]> wrote:

> Hello all,
>
> Is there a way to send multiple classes to Akka actors in a single
> tell/ask call?
>
> Say, actor X wants to send a message to Actor Y with three classes a,b,c,
> and actor Y takes these 3 classes (a,b,c) and invokes a method y1 with
> parameters (a,b,c). Is wrapping classes a,b,c with a new class A i.e.
> create a class A with fields as a,b and c the only way or is there any
> other better way to do so?
>
> Thanks!
>
> --
> >>>>>>>>>> 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 https://groups.google.com/group/akka-user.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
>>>>>>>>>>      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 https://groups.google.com/group/akka-user.
For more options, visit https://groups.google.com/d/optout.

Reply via email to