brandbir
brandbir

Reputation: 315

Multiple child Actors in akka

I have a situation in which one particular Actor needs to use 2 instances of an other Actor, each having different parameters. These sub-actors use other 'named' actors and obviously it cannot be handled because there cannot be multiple actors running at the same time, with the same 'name'. How this can be done?

Upvotes: 0

Views: 653

Answers (1)

smk
smk

Reputation: 5932

If Im not wrong the name of an Actor is unique in the context of the parent. So if the two instances of the actor you create have different names, then they can use other named actors.

I stand to be corrected though.

Upvotes: 1

Related Questions