I have an actor hierarchy, with a WebsocketActor
in the top of it.
It handles the connection to third-party service and has n
SessionActor
actors that handle complex logic.
Now I want, when the system shuts down, that every SessionActor sends it's last message to WebsocketActor actor (like "ok, terminate my session").
But since the inbox is stopped for the WebsocketActor, it just didn't work.
I tried shutdownGracefully()
method, and aware of Reaper pattern, but not sure if it will fit me.
Stack I use is: Akka+Netty andjavax.websocket.*;
to handle third-party websocket service