Merge pull request #16961 from drewhk/wip-java-materialized-values-section-drewhk

+doc: Added materialized value handling section for Java
This commit is contained in:
drewhk 2015-02-27 15:56:38 +01:00
commit d56ea400a0
2 changed files with 13 additions and 3 deletions

View file

@ -196,6 +196,16 @@ which will be running on the thread pools they have been configured to run on -
Reusing *instances* of linear computation stages (Source, Sink, Flow) inside FlowGraphs is legal,
yet will materialize that stage multiple times.
Combining materialized values
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Since every processing stage in Akka Streams can provide a materialized value after being materialized, it is necessary
to somehow express how these values should be composed to a final value when we plug these stages together. For this,
many combinator methods have variants that take an additional argument, a function, that will be used to combine the
resulting values. Some examples of using these combiners are illustrated in the example below.
.. includecode:: ../../../akka-samples/akka-docs-java-lambda/src/test/java/docs/stream/FlowDocSpec.scala#flow-mat-combine
Stream ordering
===============