LoginSignup
1
1

More than 5 years have passed since last update.

j.u.c.Flowサンプルのシーケンス図を書いてみた

Posted at

JDK9でjava.util.concurrent.Flowが導入予定となっています。
Flowは、非同期ストリーム処理の標準で、Reactive Streamsで議論されています。

Observer/ObservableモデルはJDK1.0からありましたが、JDK9でFlowが導入されることにともない、以下はDeprecatedになる予定です。
- java.util.Observer
- java.util.Observable

FlowのAPIドキュメントにサンプルプログラムが記載されています。
それほど複雑ではありませんが、3つのクラスを行ったり来たりするので、シーケンス図を書いてみました。

jdk9flow.png

1
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
1