Slide 36
Slide 36 text
https://github.com/eclipse/microprofile-reactive-streams-operators
java.util.stream API のReactive Streams版
• forEach(), filter(), map(), collect(), reduce(), etc. …
• 非同期に処理を行う
• 最終ステージ(collect, findFirst, reduce, etc.)はCompletionStageを返す
• CompletionStageが完了しないと、結果を取得できない
• 実行中の例外もCompletionStage経由
• parallel(), findAny()は提供されない
Publisher, Subscriber, Processor のステージを連結して完結する処理を組み立てる
MicroProfile Reactive Streams Operators
Copyright © 2020, Oracle and/or its affiliates
36
of(…) Filter()
org.eclipse.microprofile.reactive.streams.operators
PublisherBuilder
map() toList()
org.eclipse.microprofile.reactive.streams.operators
SubscriberBuilder
.to( )