Commit graph

167 commits

Author SHA1 Message Date
Patrik Nordwall
9fce9a9c33
more headers (#29953) 2021-01-15 16:11:00 +01:00
Nitika Agarwal
8361b2a1b9
Add example for mapError (#29913) 2021-01-13 08:05:47 +01:00
Nitika Agarwal
294661bde1
Add example for foldAsync (#29912) 2021-01-13 08:01:58 +01:00
Arnout Engelen
31f654768f
Update copyright to 2021 2021-01-08 17:55:38 +01:00
Matteo Di Pirro
01e4b4de27
Operators: Add example for watchTermination (#29888) 2020-12-15 13:47:07 +01:00
Matteo Di Pirro
374d55cd34
Operators: Add example for groupBy (#29875) 2020-12-09 17:44:04 +01:00
Nitika Agarwal
e290130386
Add examples for asInputStream and asOutputStream (#29830) 2020-11-30 10:39:14 +01:00
Enno Runne
459e74b921
Operator docs: examples for asSource/FlowWithContext (#29822)
* Operator docs: examples for asSource/FlowWithContext

* javafmtAll

* Try to capture the essence better

* Update index

* Include the test use in the snippets
2020-11-25 12:21:16 +01:00
Enno Runne
d253c6402d
Docs: use RestartSettings (#29788) 2020-11-16 08:24:56 +00:00
Sean Glover
779161d556 BoundedQueueSource API 2020-11-05 14:05:49 -05:00
Muskan Gupta
432d94d5a4
Adding example of cancelled operator (#29749)
Co-authored-by: Arnout Engelen <github@bzzt.net>
Co-authored-by: Renato Cavalcanti <renato@cavalcanti.be>
2020-10-20 13:43:26 +02:00
Muskan Gupta
1ff619259f
Adding example of headOption operator (#29717)
Co-authored-by: Johan Andrén <johan@markatta.com>
2020-10-12 09:27:46 +02:00
r-glyde
a4acf23d05
Restart(Source|Flow|Sink): Configurable stream restart deadline (#29591) 2020-10-05 09:12:15 +02:00
Muskan Gupta
94d62f34c1
Add completion timeout example (#29673)
* Adding example for completionTimeout

* Adding header to file

* Modifying example

* Modifying duration

* Modifying syntax for duration
2020-09-29 15:47:36 +02:00
Muskan Gupta
a12867b8b1
Docs: Reduce operator (#29641)
Co-authored-by: Arnout Engelen <github@bzzt.net>
2020-09-22 15:28:35 +02:00
Muskan Gupta
ac648a5940
Adding example of fold for sink #25468 2020-09-21 18:01:14 +02:00
Ignasi Marimon-Clos
ffc4235980
Adds mapAsync(Unordered) operator samples (#29600) 2020-09-16 12:24:49 +02:00
Patrik Nordwall
249af61ede
Merge pull request #29382 from JoelWee/25468-docs-merge-preferred-prioritized
Add mergePreferred, mergePrioritized docs (#25468)
2020-08-10 09:00:09 +02:00
Arnout Engelen
327e16980d
Make warnings in Java code fatal (#28402) 2020-08-04 13:47:38 +02:00
Joel Wee
54efafd07d Add mergePreferred, mergePrioritized docs (#25468) 2020-07-14 18:03:18 +08:00
Ignasi Marimon-Clos
68fa87c58c
Merge pull request #29356 from ignasi35/monitor-operator-sample-code 2020-07-13 19:33:36 +02:00
Ignasi Marimon-Clos
6ca92cc543 javafmt 2020-07-13 14:04:28 +02:00
Ignasi Marimon-Clos
6c12ae117a PR comments 2020-07-13 10:46:16 +02:00
James Roper
558160702b
Added MergeSequence graph stage (#29247)
Fixes #28769

Use case for this is if you have a sequence of elements that has been
partitioned across multiple streams, and you want to merge them back
together in order. It will typically be used in combination with
`zipWithIndex` to define the index for the sequence, followed by a
`Partition`, followed by the processing of different substreams with
different flows (each flow emitting exactly one output for each input),
and then merging with this stage, using the index from `zipWithIndex`.

A more concrete use case is if you're consuming messages from a message
broker, and you have a flow that you wish to apply to some messages, but
not others, you can partition the message stream according to which
should be processed by the flow and which should bypass it, and then
bring the elements back together acknowledgement. If an ordinary merge
was used rather than this, the messages that bypass the processing flow
would likely overtake the messages going through the processing flow,
and the result would be out of order offset acknowledgement which would
lead to dropping messages on failure.

I've included a minimal version of the above example in the documentation.
2020-07-09 11:52:46 -04:00
Ignasi Marimon-Clos
f187abddd1 Prefer monitoring from a separate stream (without blocking calls) 2020-07-07 17:08:11 +02:00
Ignasi Marimon-Clos
2b71abe78e Show less code. More informative comments (still hides blocking calls 2020-07-07 15:27:25 +02:00
Ignasi Marimon-Clos
024710a6e0 Headers and formats 2020-07-07 14:58:56 +02:00
Ignasi Marimon-Clos
0e3b4605ad Simplify code: instanceof, hide sleeps,... 2020-07-07 14:25:27 +02:00
Ignasi Marimon-Clos
95a000a51b Adds sample code for the monitor operator 2020-07-07 13:09:54 +02:00
jeremie-seguin
6130b33e08
Fix doc typo (#29326) 2020-06-30 10:52:26 +02:00
Johan Andrén
1e9e984727
Removing, deprecating and replacing usage of black/whitelist (#29254) 2020-06-18 15:48:28 +02:00
Enno
bc68f0d650
Docs: Actor source stream operators (#29178) 2020-06-15 14:11:28 +02:00
Ignasi Marimon-Clos
411a11dd9d No commit without a formatting follwup 2020-06-09 15:55:43 +02:00
Ignasi Marimon-Clos
6eb1a9e1ef Split example to ease into the details. PR Comments 2020-06-09 15:53:04 +02:00
Ignasi Marimon-Clos
506cbc5bf4 x-ref to queue.md 2020-06-09 09:41:11 +02:00
Ignasi Marimon-Clos
a72ee4d5b8 Adds throttle example 2020-06-08 20:06:32 +02:00
Johan Andrén
ac3065bfad
Docs for lazy stream operators (#28897) 2020-05-15 12:03:27 +02:00
Ignasi Marimon-Clos
64cc32edbd
Examples for extrapolate (#28797)
* Adds example for Extrapolate

* Adds example for Extrapolate (Java)

* Adds example for Expand

* Remove code duplication. Improve docs signature sections

* Update akka-docs/src/main/paradox/stream/operators/Source-or-Flow/extrapolate.md

Co-Authored-By: Arnout Engelen <github@bzzt.net>

* PR comments

Co-authored-by: Arnout Engelen <github@bzzt.net>
2020-04-29 08:51:32 +02:00
kerr
6b5d544deb
Add Source.fromJavaStream as convenient method alias (#28881) 2020-04-28 11:15:11 +02:00
Christopher Batey
0e3cfbf584
Docs: mergeLatest (#28586) 2020-04-27 17:45:04 +02:00
Christopher Batey
23ea1a4fed
Docs: flatMapConcat (#28584) 2020-04-27 16:46:16 +02:00
Ignasi Marimon-Clos
f683241c40
Docs: examples for io streams with StreamConverters (#28746) 2020-03-27 09:56:59 +01:00
Patrik Nordwall
37d87811b5
Doc example of Streams watch operator, #25468 (#28752) 2020-03-26 18:00:58 +01:00
B YI
1545f3fb25
Doc example for Sink.head (#28782) 2020-03-23 14:03:09 +01:00
Ignasi Marimon-Clos
3d8b4360f0
Docs: Example on the as/fromJavaStream operators (#28745) 2020-03-18 15:54:21 +01:00
Patrik Nordwall
94d5b04d93
Doc example of Sink.ignore, #25468 (#28753) 2020-03-18 12:42:20 +01:00
Johan Andrén
6f23b1fb4b
Update Source.actorRef sample to not use deprecated method #28679 2020-03-12 17:24:31 +01:00
Johan Andrén
d8aed9e9d3
Operator examples for statefulMapConcat #25468 2020-03-10 10:36:07 +01:00
Johan Andrén
c46861ed26
Add LogWithMarker to Akka Stream #28450 2020-03-05 15:05:05 +01:00
Christopher Batey
bfebb235d5
Doc onFailureWithBackoff (#28356) 2020-03-03 10:18:34 +01:00