クラスjava.util.concurrent.Phaser
の使用
-
Phaserを使用するパッケージ パッケージ 説明 java.util.concurrent 並行プログラミングでよく使用されるユーティリティ・クラスです。 -
-
java.util.concurrentでのPhaserの使用
Phaserを返すjava.util.concurrentのメソッド 修飾子と型 メソッド 説明 Phaser
Phaser. getParent()
このフェーザの親を返します。存在しない場合はnull
です。Phaser
Phaser. getRoot()
このフェーザの上位ノードとなるルートを返します。フェーザが親を持たない場合はこのフェーザと同じです。Phaser型のパラメータを持つjava.util.concurrentのコンストラクタ コンストラクタ 説明 Phaser(Phaser parent)
Phaser(parent, 0)
と同等です。Phaser(Phaser parent, int parties)
指定された親を持ち、指定された数の登録済み未到着パーティを含む新規フェーザを作成します。
-