Clarify what to do instead of sending a PoisonPill for ActorRef source (#27090)
* Clarify what to do instead of sending poison pill to actor ref source * Fix typos in scala/java doc for Source.actorRef
This commit is contained in:
parent
508aa9970f
commit
6d7ad47571
3 changed files with 6 additions and 5 deletions
|
|
@ -53,7 +53,8 @@ private object ActorRefSource {
|
|||
|
||||
override val ref: ActorRef = getEagerStageActor(eagerMaterializer, poisonPillCompatibility = true) {
|
||||
case (_, PoisonPill) =>
|
||||
log.warning("for backwards compatibility: PoisonPill will not be supported in the future")
|
||||
log.warning(
|
||||
"PoisonPill only completes ActorRefSource for backwards compatibility and not be supported in the future. Send Status.Success(CompletionStrategy) instead")
|
||||
completeStage()
|
||||
case (_, m) if failureMatcher.isDefinedAt(m) =>
|
||||
failStage(failureMatcher(m))
|
||||
|
|
|
|||
|
|
@ -319,9 +319,9 @@ object Source {
|
|||
* completion.
|
||||
*
|
||||
* The stream can be completed successfully by sending the actor reference a [[akka.actor.Status.Success]].
|
||||
* If the content is [[akka.stream.CompletionStrategy.immediately]] the completion will be signaled immidiately,
|
||||
* If the content is [[akka.stream.CompletionStrategy.immediately]] the completion will be signaled immediately,
|
||||
* otherwise if the content is [[akka.stream.CompletionStrategy.draining]] (or anything else)
|
||||
* already buffered elements will be signaled before siganling completion.
|
||||
* already buffered elements will be signaled before signaling completion.
|
||||
* Sending [[akka.actor.PoisonPill]] will signal completion immediately but this behavior is deprecated and scheduled to be removed.
|
||||
*
|
||||
* The stream can be completed with failure by sending a [[akka.actor.Status.Failure]] to the
|
||||
|
|
|
|||
|
|
@ -543,9 +543,9 @@ object Source {
|
|||
* this Source; as such, it is never safe to assume the downstream will always generate demand.
|
||||
*
|
||||
* The stream can be completed successfully by sending the actor reference a [[akka.actor.Status.Success]].
|
||||
* If the content is [[akka.stream.CompletionStrategy.immediately]] the completion will be signaled immidiately,
|
||||
* If the content is [[akka.stream.CompletionStrategy.immediately]] the completion will be signaled immediately,
|
||||
* otherwise if the content is [[akka.stream.CompletionStrategy.draining]] (or anything else)
|
||||
* already buffered elements will be signaled before siganling completion.
|
||||
* already buffered elements will be signaled before signaling completion.
|
||||
* Sending [[akka.actor.PoisonPill]] will signal completion immediately but this behavior is deprecated and scheduled to be removed.
|
||||
*
|
||||
* The stream can be completed with failure by sending a [[akka.actor.Status.Failure]] to the
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue