Default gracefully stop behavior for leaf level actors
(Actors only receive the msg as input and send out a result)
towards the GracefulStop
message
Default gracefully stop behavior for leaf level actors
(Actors only receive the msg as input and send out a result)
towards the GracefulStop
message
Simply stop itself
Default gracefully stop behavior for middle level actors
(Actors rely on the results of other actors to finish their tasks)
towards the GracefulStop
message
Default gracefully stop behavior for middle level actors
(Actors rely on the results of other actors to finish their tasks)
towards the GracefulStop
message
Simply propagate the GracefulStop
message to all actors
that should be stop ahead of this actor
If some actors failed to respond to the GracefulStop
message,
It will send PoisonPill
again
After all the actors get terminated it stops itself
Duration that the actor needs to finish the graceful stop.
Duration that the actor needs to finish the graceful stop. Override it for customized timeout and it will be registered to the reaper Default to 5 seconds
Duration
The trait provides some helper methods to support graceful stop of an actor in Squbs framework
Once you mix this trait in your actor, you can override stopTimeout to indicate how much time this actor may need to stop it self.
When the actor gets created, it will send the
stopTimeout
to its parent. You can have the logic in the parent actor to decide to spend how much time to stop its childrenIf you want your actor to stop gracefully, you should put your stop logic in the
receive
method responding to theGracefulStop
message