boolean |
CountDownLatch.await(long timeout, TimeUnit unit) |
スレッドで割り込みが発生するか、指定された待機時間が経過しないかぎり、ラッチのカウント・ダウンがゼロになるまで現在のスレッドを待機させます。
|
int |
CyclicBarrier.await(long timeout, TimeUnit unit) |
すべてのパーティがこのバリアーでawait を呼び出すか、指定された待機時間が経過するまで待機します。
|
int |
Phaser.awaitAdvanceInterruptibly(int phase, long timeout, TimeUnit unit) |
このフェーザのフェーズが指定されたフェーズ値から進むか、指定されたタイム・アウト時間が経過するまで待機し、待機中に割込みが発生した場合は InterruptedException をスローし、現在のフェーズが指定されたフェーズ値と等しくないか、このフェーザが終了した場合はすぐに復帰します。
|
boolean |
ForkJoinPool.awaitQuiescence(long timeout, TimeUnit unit) |
|
boolean |
ExecutorService.awaitTermination(long timeout, TimeUnit unit) |
シャットダウン要求後にすべてのタスクが実行を完了していたか、タイム・アウトが発生するか、現在のスレッドで割込みが発生するか、そのいずれかが最初に発生するまでブロックします。
|
boolean |
ForkJoinPool.awaitTermination(long timeout, TimeUnit unit) |
シャットダウン要求後にすべてのタスクが実行を完了していたか、タイム・アウトが発生するか、現在のスレッドで割込みが発生するか、そのいずれかが最初に発生するまでブロックします。
|
CompletableFuture<T> |
CompletableFuture.completeOnTimeout(T value, long timeout, TimeUnit unit) |
指定されたタイムアウト前に完了していない場合は、このCompletableFutureを指定された値で完了します。
|
long |
TimeUnit.convert(long sourceDuration, TimeUnit sourceUnit) |
指定された単位による指定されたデュレーションを、この単位に変換します。
|
static Executor |
CompletableFuture.delayedExecutor(long delay, TimeUnit unit) |
指定された遅延(非正の場合は遅延なし)の後にデフォルトのexecutorにタスクをサブ・ミットする新しいExecutorを返します。
|
static Executor |
CompletableFuture.delayedExecutor(long delay, TimeUnit unit, Executor executor) |
指定された遅延(非正の場合は遅延なし)の後に、指定されたベースexecutorにタスクをサブ・ミットする新しいExecutorを返します。
|
V |
Exchanger.exchange(V x, long timeout, TimeUnit unit) |
現在のスレッドは、割り込みが発生するか、指定された待機時間が経過しないかぎり、もう一方のスレッドがこの交換ポイントに達するまで待機し、指定されたオブジェクトをそのスレッドに転送して、代わりにもう一方のスレッドのオブジェクトを受け取ります。
|
T |
CompletableFuture.get(long timeout, TimeUnit unit) |
必要な場合は指定された時間までこのフューチャが完了するのを待機し、その結果を返します(使用可能な場合)。
|
V |
ForkJoinTask.get(long timeout, TimeUnit unit) |
必要に応じて、最大で指定された時間、計算が完了するまで待機し、その後、計算結果が利用可能な場合は結果を取得します。
|
V |
Future.get(long timeout, TimeUnit unit) |
必要に応じて、最大で指定された時間、計算が完了するまで待機し、その後、計算結果が利用可能な場合は結果を取得します。
|
V |
FutureTask.get(long timeout, TimeUnit unit) |
|
long |
Delayed.getDelay(TimeUnit unit) |
特定のタイム・ユニットで、このオブジェクトと関連する残りの遅延を返します。
|
long |
ThreadPoolExecutor.getKeepAliveTime(TimeUnit unit) |
スレッドが終了する前にアイドル状態のままになる可能性があるスレッドのキープアライブ時間を返します。
|
<T> List<Future<T>> |
ExecutorService.invokeAll(Collection<? extends Callable<T>> tasks, long timeout, TimeUnit unit) |
指定されたタスクを実行し、すべてが完了するか時間切れになるか、そのいずれかが最初に発生した時点で、ステータスと結果を含むFutureのリストを返します。
|
<T> T |
ExecutorService.invokeAny(Collection<? extends Callable<T>> tasks, long timeout, TimeUnit unit) |
指定されたタスクを実行し、タイム・アウトが経過する前に例外をスローせずに正常に完了したタスクが存在する場合は、その結果を返します。
|
boolean |
ArrayBlockingQueue.offer(E e, long timeout, TimeUnit unit) |
指定された要素をこのキューの末尾に挿入します。このキューがいっぱいである場合は、指定された時間まで空きが生じるのを待機します。
|
boolean |
BlockingDeque.offer(E e, long timeout, TimeUnit unit) |
指定された要素をこの両端キューで表されるキュー(つまり、この両端キューの末尾)に挿入します。必要に応じて、指定された待機時間まで空きが生じるのを待機します。
|
boolean |
BlockingQueue.offer(E e, long timeout, TimeUnit unit) |
指定された要素をこのキューに挿入します。必要に応じて、指定された時間まで空きが生じるのを待機します。
|
boolean |
DelayQueue.offer(E e, long timeout, TimeUnit unit) |
指定された要素をこの遅延キューに挿入します。
|
boolean |
LinkedBlockingDeque.offer(E e, long timeout, TimeUnit unit) |
|
boolean |
LinkedBlockingQueue.offer(E e, long timeout, TimeUnit unit) |
指定された要素をこのキューの末尾に挿入します。必要に応じて、指定された待機時間まで空きが生じるのを待機します。
|
boolean |
LinkedTransferQueue.offer(E e, long timeout, TimeUnit unit) |
キューの末尾に、指定された要素を挿入します。
|
boolean |
PriorityBlockingQueue.offer(E e, long timeout, TimeUnit unit) |
指定された要素をこの優先度キューに挿入します。
|
int |
SubmissionPublisher.offer(T item, long timeout, TimeUnit unit, BiPredicate<Flow.Subscriber<? super T>,? super T> onDrop) |
指定されたアイテムを、可能であれば現在の各サブスクライバに公開します。これは、onNext メソッドを非同期的に呼び出し、任意のサブスクリプションのリソースを使用できなくしてもブロックします。指定されたタイムアウトまで、またはコールアウト・スレッドが中断するまで、指定されたハンドラ(非nullの場合)が呼び出され、trueが返された場合は1回再試行します。
|
boolean |
SynchronousQueue.offer(E e, long timeout, TimeUnit unit) |
指定された要素をこのキューに挿入します。必要に応じて、指定された待機時間まで別のスレッドが要素を受け取るのを待機します。
|
boolean |
BlockingDeque.offerFirst(E e, long timeout, TimeUnit unit) |
指定された要素をこの両端キューの先頭に挿入します。必要に応じて、指定された待機時間まで空きが生じるのを待機します。
|
boolean |
LinkedBlockingDeque.offerFirst(E e, long timeout, TimeUnit unit) |
|
boolean |
BlockingDeque.offerLast(E e, long timeout, TimeUnit unit) |
指定された要素をこの両端キューの末尾に挿入します。必要に応じて、指定された待機時間まで空きが生じるのを待機します。
|
boolean |
LinkedBlockingDeque.offerLast(E e, long timeout, TimeUnit unit) |
|
CompletableFuture<T> |
CompletableFuture.orTimeout(long timeout, TimeUnit unit) |
|
E |
BlockingDeque.poll(long timeout, TimeUnit unit) |
この両端キューによって表されるキューの先頭(つまり、この両端キューの最初の要素)を取得して削除します。必要に応じて、指定された待機時間まで要素が利用可能になるのを待機します。
|
E |
BlockingQueue.poll(long timeout, TimeUnit unit) |
このキューの先頭を取得して削除します。必要に応じて、指定された待機時間まで要素が利用可能になるのを待機します。
|
Future<V> |
CompletionService.poll(long timeout, TimeUnit unit) |
次の完了済みタスクを表すFutureを取得して削除します。何も存在しない場合は、必要に応じて指定された待機時間まで待機します。
|
E |
DelayQueue.poll(long timeout, TimeUnit unit) |
このキューの先頭を取得および削除します。必要に応じて、期限切れの遅延がある要素がこのキューで利用可能になるまで、または指定された有効期限が切れるまで待機します。
|
E |
SynchronousQueue.poll(long timeout, TimeUnit unit) |
このキューの先頭を取得および削除します。必要に応じて、指定された待機時間まで別のスレッドがその要素を挿入するのを待機します。
|
E |
BlockingDeque.pollFirst(long timeout, TimeUnit unit) |
この両端キューの最初の要素を取得して削除します。必要に応じて、指定された待機時間まで要素が利用可能になるのを待機します。
|
E |
BlockingDeque.pollLast(long timeout, TimeUnit unit) |
この両端キューの最後の要素を取得して削除します。必要に応じて、指定された待機時間まで要素が利用可能になるのを待機します。
|
ScheduledFuture<?> |
ScheduledExecutorService.schedule(Runnable command, long delay, TimeUnit unit) |
指定された遅延後に有効になるワン・ショット・タスクを送信します。
|
<V> ScheduledFuture<V> |
ScheduledExecutorService.schedule(Callable<V> callable, long delay, TimeUnit unit) |
指定した遅延の後に有効になる、値を返すワン・ショット・タスクを送信します。
|
ScheduledFuture<?> |
ScheduledThreadPoolExecutor.schedule(Runnable command, long delay, TimeUnit unit) |
|
<V> ScheduledFuture<V> |
ScheduledThreadPoolExecutor.schedule(Callable<V> callable, long delay, TimeUnit unit) |
|
ScheduledFuture<?> |
ScheduledExecutorService.scheduleAtFixedRate(Runnable command, long initialDelay, long period, TimeUnit unit) |
指定された初期遅延の後に最初に有効になり、続いて指定された期間で有効になる定期的なアクションを送信します。つまり、実行はinitialDelay 、initialDelay + period 、initialDelay + 2 * period などの後に開始されます。
|
ScheduledFuture<?> |
ScheduledThreadPoolExecutor.scheduleAtFixedRate(Runnable command, long initialDelay, long period, TimeUnit unit) |
指定された初期遅延の後に最初に有効になり、続いて指定された期間で有効になる定期的なアクションを送信します。つまり、実行はinitialDelay 、initialDelay + period 、initialDelay + 2 * period などの後に開始されます。
|
ScheduledFuture<?> |
ScheduledExecutorService.scheduleWithFixedDelay(Runnable command, long initialDelay, long delay, TimeUnit unit) |
指定された初期遅延の後に最初に有効になる定期的なアクションを送信し、その後、1つの実行の終了と次の実行の開始の間の所定の遅延で送信します。
|
ScheduledFuture<?> |
ScheduledThreadPoolExecutor.scheduleWithFixedDelay(Runnable command, long initialDelay, long delay, TimeUnit unit) |
指定された初期遅延の後に最初に有効になる定期的なアクションを送信し、その後、1つの実行の終了と次の実行の開始の間の所定の遅延で送信します。
|
void |
ThreadPoolExecutor.setKeepAliveTime(long time, TimeUnit unit) |
スレッドが終了する前にアイドル状態を維持する可能性がある時間を示すスレッド・キープアライブ時間を設定します。
|
boolean |
Semaphore.tryAcquire(int permits, long timeout, TimeUnit unit) |
指定された待機時間内で指定された数のパーミットが利用可能であり、現在のスレッドで割り込みが発生していない場合に、このセマフォから指定された数のパーミットを取得します。
|
boolean |
Semaphore.tryAcquire(long timeout, TimeUnit unit) |
指定された待機時間内でパーミットが利用可能になり、現在のスレッドで割り込みが発生していない場合に、このセマフォからパーミットを取得します。
|
boolean |
LinkedTransferQueue.tryTransfer(E e, long timeout, TimeUnit unit) |
タイム・アウトが経過する前に要素をコンシューマに転送できる場合には、そうします。
|
boolean |
TransferQueue.tryTransfer(E e, long timeout, TimeUnit unit) |
タイム・アウトが経過する前に要素をコンシューマに転送できる場合には、そうします。
|