All right, it seems to work now, thank you very much!
Cheers,
--
>> 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
Well, I'm using Akka Distributed Data on both the player and room service
with different keys.
Player service:
val replicator = DistributedData(context.system).replicator
val DataKey = LWWMapKey[Player]("player")
When the player service receives a "GetPlayer" message, it fetches the
player
Nope, that's why I'm so confused about it.
--
>> 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
Nope, that's why I'm so confused about it.
--
>> 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
Nope, that's why I'm so confused about it.
--
>> 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
Nope, that's why I'm so confused about it.
--
>> 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
The exception is not thrown by the player service but by the room service that
doesn't load the class (it doesn't use it!)
--
>> Read the docs: http://akka.io/docs/
>> Check the FAQ:
>> http://doc.akka.io/docs/akka/current/additional/faq.html
>>
;)
)
).props(), name = s"PlayerServiceGroup")
playerService ! GetPlayer(1)
// Now room service throws ClassNotFoundException: ...players.model.Player
(class of player service)
Do you know what's wrong with it?
Thanks!
Cheers,
Steve Winfield
--
>>>>>>>>&
gt; Hi Steve,
> have you looked at
> http://doc.akka.io/docs/akka/2.4/scala/cluster-sharding.html? It seems
> well suited to your use case if I understood it correctly.
>
> Cheers,
> Rafał
>
> W dniu poniedziałek, 28 listopada 2016 18:24:23 UTC+1 użytkownik Steve
> Winfi
mmands/setnx) a good
alternative (my second approach)? How would you guys solve this "problem"?*
Thanks!
Cheers,
Steve Winfield
--
>>>>>>>>>> Read the docs: http://akka.io/docs/
>>>>>>>>>> Check the FAQ:
>>>&g
All right, what if I'd use messages instead of a callback (The players
handle their position by themselves)?
In this case I want the selected players to be kicked out of the room so I
could send ExecuteOnPlayersByPosition(position, LeaveRoom) to every single
player and they would handle it
Hey,
I got a question regarding a project I'm working on.
There are player actors that can be managed by a "player director" actor
which belongs to a virtual room and supervises the players. A player
maintains its current position and name as a mutable state.
The director looks like this:
Am Samstag, 8. Oktober 2016 22:09:46 UTC+2 schrieb Justin du coeur:
>
> (Although my first impression is that I'd probably use a repeated
> schedule, and on each call decide whether to stop, rather than a lot of
> scheduleOnce's.)
>
Players are not always moving and I guess (!!) that a
c66e270a7b25feb10dcd90926c)
What do you think about it? (it's calling context.system.scheduler.scheduleOnce
for every step - too much?)
Cheers,
Steve Winfield
--
>>>>>>>>>> Read the docs: http://akka.io/docs/
>>>>>>>>>>
14 matches
Mail list logo