int |
CyclicBarrier.await(long timeout, TimeUnit unit) |
すべてのパーティがこのバリアーでawait を呼び出すか、指定された待機時間が経過するまで待機します。
|
int |
Phaser.awaitAdvanceInterruptibly(int phase, long timeout, TimeUnit unit) |
このフェーザのフェーズが指定されたフェーズ値から進むか、指定されたタイム・アウト時間が経過するまで待機し、待機中に割込みが発生した場合は InterruptedException をスローし、現在のフェーズが指定されたフェーズ値と等しくないか、このフェーザが終了した場合はすぐに復帰します。
|
V |
Exchanger.exchange(V x, long timeout, TimeUnit unit) |
現在のスレッドは、割り込みが発生するか、指定された待機時間が経過しないかぎり、もう一方のスレッドがこの交換ポイントに達するまで待機し、指定されたオブジェクトをそのスレッドに転送して、代わりにもう一方のスレッドのオブジェクトを受け取ります。
|
T |
CompletableFuture.get(long timeout, TimeUnit unit) |
必要な場合は指定された時間までこのfutureが完了するのを待機し、その結果を返します(使用可能な場合)。
|
V |
ForkJoinTask.get(long timeout, TimeUnit unit) |
必要に応じて、最大で指定された時間、計算が完了するまで待機し、その後、計算結果が利用可能な場合は結果を取得します。
|
V |
Future.get(long timeout, TimeUnit unit) |
必要に応じて、最大で指定された時間、計算が完了するまで待機し、その後、計算結果が利用可能な場合は結果を取得します。
|
V |
FutureTask.get(long timeout, TimeUnit unit) |
|
<T> T |
AbstractExecutorService.invokeAny(Collection<? extends Callable<T>> tasks, long timeout, TimeUnit unit) |
|
<T> T |
ExecutorService.invokeAny(Collection<? extends Callable<T>> tasks, long timeout, TimeUnit unit) |
指定されたタスクを実行し、タイム・アウトが経過する前に例外をスローせずに正常に完了したタスクが存在する場合は、その結果を返します。
|