The decider to use.
The decider to use. Override if not resumingDecider.
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
The kill switch to integrate into the stream.
The kill switch to integrate into the stream. Override this if you want a different switch or one that is shared between perpetual streams.
The kill switch.
Override shutdown to define your own shutdown process or wait for the sink to finish.
Override shutdown to define your own shutdown process or wait for the sink to finish. The default shutdown makes the following assumptions:
A Future[Done] that gets completed when the whole stream is done.
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
By default the stream is run when system state is Active.
By default the stream is run when system state is Active. Override this if you want it to run in a different lifecycle phase.
Traits for perpetual streams that start and stop with the server. The simplest conforming implementation follows these requirements:
The type of the materialized value of the stream.