Replace graph with operator in Scaladoc/Javadoc
This commit is contained in:
parent
57615f1e88
commit
60eee84345
64 changed files with 394 additions and 394 deletions
|
|
@ -527,7 +527,7 @@ final class Source[Out, Mat](delegate: scaladsl.Source[Out, Mat]) extends Graph[
|
|||
}
|
||||
|
||||
/**
|
||||
* Transform this [[Source]] by appending the given processing stages.
|
||||
* Transform this [[Source]] by appending the given processing operators.
|
||||
* {{{
|
||||
* +----------------------------+
|
||||
* | Resulting Source |
|
||||
|
|
@ -547,7 +547,7 @@ final class Source[Out, Mat](delegate: scaladsl.Source[Out, Mat]) extends Graph[
|
|||
new Source(delegate.via(flow))
|
||||
|
||||
/**
|
||||
* Transform this [[Source]] by appending the given processing stages.
|
||||
* Transform this [[Source]] by appending the given processing operators.
|
||||
* {{{
|
||||
* +----------------------------+
|
||||
* | Resulting Source |
|
||||
|
|
@ -647,7 +647,7 @@ final class Source[Out, Mat](delegate: scaladsl.Source[Out, Mat]) extends Graph[
|
|||
* if there is a failure is signaled in the stream.
|
||||
*
|
||||
* If the stream is empty (i.e. completes before signalling any elements),
|
||||
* the reduce stage will fail its downstream with a [[NoSuchElementException]],
|
||||
* the reduce operator will fail its downstream with a [[NoSuchElementException]],
|
||||
* which is semantically in-line with that Scala's standard library collections
|
||||
* do in such situations.
|
||||
*/
|
||||
|
|
@ -745,7 +745,7 @@ final class Source[Out, Mat](delegate: scaladsl.Source[Out, Mat]) extends Graph[
|
|||
* from producing elements by asserting back-pressure until its time comes or it gets
|
||||
* cancelled.
|
||||
*
|
||||
* On errors the stage is failed regardless of source of the error.
|
||||
* On errors the operator is failed regardless of source of the error.
|
||||
*
|
||||
* '''Emits when''' element is available from first stream or first stream closed without emitting any elements and an element
|
||||
* is available from the second stream
|
||||
|
|
@ -1081,7 +1081,7 @@ final class Source[Out, Mat](delegate: scaladsl.Source[Out, Mat]) extends Graph[
|
|||
* This operation is useful for inspecting the passed through element, usually by means of side-effecting
|
||||
* operations (such as `println`, or emitting metrics), for each element without having to modify it.
|
||||
*
|
||||
* For logging signals (elements, completion, error) consider using the [[log]] stage instead,
|
||||
* For logging signals (elements, completion, error) consider using the [[log]] operator instead,
|
||||
* along with appropriate `ActorAttributes.createLogLevels`.
|
||||
*
|
||||
* '''Emits when''' upstream emits an element
|
||||
|
|
@ -1098,7 +1098,7 @@ final class Source[Out, Mat](delegate: scaladsl.Source[Out, Mat]) extends Graph[
|
|||
/**
|
||||
* Recover allows to send last element on failure and gracefully complete the stream
|
||||
* Since the underlying failure signal onError arrives out-of-band, it might jump over existing elements.
|
||||
* This stage can recover the failure signal, but not the skipped elements, which will be dropped.
|
||||
* This operator can recover the failure signal, but not the skipped elements, which will be dropped.
|
||||
*
|
||||
* Throwing an exception inside `recover` _will_ be logged on ERROR level automatically.
|
||||
*
|
||||
|
|
@ -1115,12 +1115,12 @@ final class Source[Out, Mat](delegate: scaladsl.Source[Out, Mat]) extends Graph[
|
|||
new Source(delegate.recover(pf))
|
||||
|
||||
/**
|
||||
* While similar to [[recover]] this stage can be used to transform an error signal to a different one *without* logging
|
||||
* While similar to [[recover]] this operator can be used to transform an error signal to a different one *without* logging
|
||||
* it as an error in the process. So in that sense it is NOT exactly equivalent to `recover(t => throw t2)` since recover
|
||||
* would log the `t2` error.
|
||||
*
|
||||
* Since the underlying failure signal onError arrives out-of-band, it might jump over existing elements.
|
||||
* This stage can recover the failure signal, but not the skipped elements, which will be dropped.
|
||||
* This operator can recover the failure signal, but not the skipped elements, which will be dropped.
|
||||
*
|
||||
* Similarily to [[recover]] throwing an exception inside `mapError` _will_ be logged.
|
||||
*
|
||||
|
|
@ -1142,7 +1142,7 @@ final class Source[Out, Mat](delegate: scaladsl.Source[Out, Mat]) extends Graph[
|
|||
* Source may be materialized.
|
||||
*
|
||||
* Since the underlying failure signal onError arrives out-of-band, it might jump over existing elements.
|
||||
* This stage can recover the failure signal, but not the skipped elements, which will be dropped.
|
||||
* This operator can recover the failure signal, but not the skipped elements, which will be dropped.
|
||||
*
|
||||
* Throwing an exception inside `recoverWith` _will_ be logged on ERROR level automatically.
|
||||
*
|
||||
|
|
@ -1168,7 +1168,7 @@ final class Source[Out, Mat](delegate: scaladsl.Source[Out, Mat]) extends Graph[
|
|||
* A negative `attempts` number is interpreted as "infinite", which results in the exact same behavior as `recoverWith`.
|
||||
*
|
||||
* Since the underlying failure signal onError arrives out-of-band, it might jump over existing elements.
|
||||
* This stage can recover the failure signal, but not the skipped elements, which will be dropped.
|
||||
* This operator can recover the failure signal, but not the skipped elements, which will be dropped.
|
||||
*
|
||||
* Throwing an exception inside `recoverWithRetries` _will_ be logged on ERROR level automatically.
|
||||
*
|
||||
|
|
@ -1316,13 +1316,13 @@ final class Source[Out, Mat](delegate: scaladsl.Source[Out, Mat]) extends Graph[
|
|||
* The `mapTo` class parameter is used to cast the incoming responses to the expected response type.
|
||||
*
|
||||
* Similar to the plain ask pattern, the target actor is allowed to reply with `akka.util.Status`.
|
||||
* An `akka.util.Status#Failure` will cause the stage to fail with the cause carried in the `Failure` message.
|
||||
* An `akka.util.Status#Failure` will cause the operator to fail with the cause carried in the `Failure` message.
|
||||
*
|
||||
* Defaults to parallelism of 2 messages in flight, since while one ask message may be being worked on, the second one
|
||||
* still be in the mailbox, so defaulting to sending the second one a bit earlier than when first ask has replied maintains
|
||||
* a slightly healthier throughput.
|
||||
*
|
||||
* The stage fails with an [[akka.stream.WatchedActorTerminatedException]] if the target actor is terminated.
|
||||
* The operator fails with an [[akka.stream.WatchedActorTerminatedException]] if the target actor is terminated.
|
||||
*
|
||||
* Adheres to the [[ActorAttributes.SupervisionStrategy]] attribute.
|
||||
*
|
||||
|
|
@ -1346,13 +1346,13 @@ final class Source[Out, Mat](delegate: scaladsl.Source[Out, Mat]) extends Graph[
|
|||
* The `mapTo` class parameter is used to cast the incoming responses to the expected response type.
|
||||
*
|
||||
* Similar to the plain ask pattern, the target actor is allowed to reply with `akka.util.Status`.
|
||||
* An `akka.util.Status#Failure` will cause the stage to fail with the cause carried in the `Failure` message.
|
||||
* An `akka.util.Status#Failure` will cause the operator to fail with the cause carried in the `Failure` message.
|
||||
*
|
||||
* Parallelism limits the number of how many asks can be "in flight" at the same time.
|
||||
* Please note that the elements emitted by this stage are in-order with regards to the asks being issued
|
||||
* Please note that the elements emitted by this operator are in-order with regards to the asks being issued
|
||||
* (i.e. same behaviour as mapAsync).
|
||||
*
|
||||
* The stage fails with an [[akka.stream.WatchedActorTerminatedException]] if the target actor is terminated.
|
||||
* The operator fails with an [[akka.stream.WatchedActorTerminatedException]] if the target actor is terminated.
|
||||
*
|
||||
* Adheres to the [[ActorAttributes.SupervisionStrategy]] attribute.
|
||||
*
|
||||
|
|
@ -1370,7 +1370,7 @@ final class Source[Out, Mat](delegate: scaladsl.Source[Out, Mat]) extends Graph[
|
|||
new Source(delegate.ask[S](parallelism)(ref)(timeout, ClassTag(mapTo)))
|
||||
|
||||
/**
|
||||
* The stage fails with an [[akka.stream.WatchedActorTerminatedException]] if the target actor is terminated.
|
||||
* The operator fails with an [[akka.stream.WatchedActorTerminatedException]] if the target actor is terminated.
|
||||
*
|
||||
* '''Emits when''' upstream emits
|
||||
*
|
||||
|
|
@ -2426,7 +2426,7 @@ final class Source[Out, Mat](delegate: scaladsl.Source[Out, Mat]) extends Graph[
|
|||
new Source(delegate.flatMapMerge(breadth, o ⇒ f(o)))
|
||||
|
||||
/**
|
||||
* If the first element has not passed through this stage before the provided timeout, the stream is failed
|
||||
* If the first element has not passed through this operator before the provided timeout, the stream is failed
|
||||
* with a [[java.util.concurrent.TimeoutException]].
|
||||
*
|
||||
* '''Emits when''' upstream emits an element
|
||||
|
|
@ -2443,7 +2443,7 @@ final class Source[Out, Mat](delegate: scaladsl.Source[Out, Mat]) extends Graph[
|
|||
new Source(delegate.initialTimeout(timeout))
|
||||
|
||||
/**
|
||||
* If the first element has not passed through this stage before the provided timeout, the stream is failed
|
||||
* If the first element has not passed through this operator before the provided timeout, the stream is failed
|
||||
* with a [[java.util.concurrent.TimeoutException]].
|
||||
*
|
||||
* '''Emits when''' upstream emits an element
|
||||
|
|
@ -2559,7 +2559,7 @@ final class Source[Out, Mat](delegate: scaladsl.Source[Out, Mat]) extends Graph[
|
|||
|
||||
/**
|
||||
* Injects additional elements if upstream does not emit for a configured amount of time. In other words, this
|
||||
* stage attempts to maintains a base rate of emitted elements towards the downstream.
|
||||
* operator attempts to maintains a base rate of emitted elements towards the downstream.
|
||||
*
|
||||
* If the downstream backpressures then no element is injected until downstream demand arrives. Injected elements
|
||||
* do not accumulate during this period.
|
||||
|
|
@ -2581,7 +2581,7 @@ final class Source[Out, Mat](delegate: scaladsl.Source[Out, Mat]) extends Graph[
|
|||
|
||||
/**
|
||||
* Injects additional elements if upstream does not emit for a configured amount of time. In other words, this
|
||||
* stage attempts to maintains a base rate of emitted elements towards the downstream.
|
||||
* operator attempts to maintains a base rate of emitted elements towards the downstream.
|
||||
*
|
||||
* If the downstream backpressures then no element is injected until downstream demand arrives. Injected elements
|
||||
* do not accumulate during this period.
|
||||
|
|
@ -2600,7 +2600,7 @@ final class Source[Out, Mat](delegate: scaladsl.Source[Out, Mat]) extends Graph[
|
|||
keepAlive(maxIdle.asScala, injectedElem)
|
||||
|
||||
/**
|
||||
* Sends elements downstream with speed limited to `elements/per`. In other words, this stage set the maximum rate
|
||||
* Sends elements downstream with speed limited to `elements/per`. In other words, this operator set the maximum rate
|
||||
* for emitting messages. This operator works for streams where all elements have the same cost or length.
|
||||
*
|
||||
* Throttle implements the token bucket model. There is a bucket with a given token capacity (burst size).
|
||||
|
|
@ -2633,7 +2633,7 @@ final class Source[Out, Mat](delegate: scaladsl.Source[Out, Mat]) extends Graph[
|
|||
new Source(delegate.throttle(elements, per.asScala))
|
||||
|
||||
/**
|
||||
* Sends elements downstream with speed limited to `elements/per`. In other words, this stage set the maximum rate
|
||||
* Sends elements downstream with speed limited to `elements/per`. In other words, this operator set the maximum rate
|
||||
* for emitting messages. This operator works for streams where all elements have the same cost or length.
|
||||
*
|
||||
* Throttle implements the token bucket model. There is a bucket with a given token capacity (burst size or maximumBurst).
|
||||
|
|
@ -2675,7 +2675,7 @@ final class Source[Out, Mat](delegate: scaladsl.Source[Out, Mat]) extends Graph[
|
|||
new Source(delegate.throttle(elements, per, maximumBurst, mode))
|
||||
|
||||
/**
|
||||
* Sends elements downstream with speed limited to `elements/per`. In other words, this stage set the maximum rate
|
||||
* Sends elements downstream with speed limited to `elements/per`. In other words, this operator set the maximum rate
|
||||
* for emitting messages. This operator works for streams where all elements have the same cost or length.
|
||||
*
|
||||
* Throttle implements the token bucket model. There is a bucket with a given token capacity (burst size or maximumBurst).
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue