インタフェースjava.util.concurrent.RunnableFuture
の使用
-
RunnableFutureを使用するパッケージ パッケージ 説明 java.util.concurrent 並行プログラミングでよく使用されるユーティリティ・クラスです。javafx.concurrent javafx.taskのクラスのセットを提供します。javax.swing すべてのプラットフォーム上で可能なかぎり同じように機能する「軽量」(Java共通言語)コンポーネントのセットを提供します。 -
-
java.util.concurrentでのRunnableFutureの使用
java.util.concurrentでのRunnableFutureのサブインタフェース 修飾子と型 インタフェース 説明 interface
RunnableScheduledFuture<V>
Runnable
であるScheduledFuture
です。RunnableFutureを実装しているjava.util.concurrentのクラス 修飾子と型 クラス 説明 class
FutureTask<V>
取消し可能な非同期計算です。RunnableFutureを返すjava.util.concurrentのメソッド 修飾子と型 メソッド 説明 protected <T> RunnableFuture<T>
AbstractExecutorService. newTaskFor(Runnable runnable, T value)
指定された実行可能タスクおよびデフォルト値のRunnableFuture
を返します。protected <T> RunnableFuture<T>
AbstractExecutorService. newTaskFor(Callable<T> callable)
指定された呼出し可能タスクのRunnableFuture
を返します。protected <T> RunnableFuture<T>
ForkJoinPool. newTaskFor(Runnable runnable, T value)
protected <T> RunnableFuture<T>
ForkJoinPool. newTaskFor(Callable<T> callable)
-
javafx.concurrentでのRunnableFutureの使用
RunnableFutureを実装しているjavafx.concurrentのクラス 修飾子と型 クラス 説明 class
Task<V>
FutureTask
の完全に監視可能な実装。 -
javax.swingでのRunnableFutureの使用
RunnableFutureを実装しているjavax.swingのクラス 修飾子と型 クラス 説明 class
SwingWorker<T,V>
GUIとやりとりする時間のかかるタスクを、バックグラウンド・スレッドで実行するための抽象クラスです。
-