|
JavaTM Platform Standard Ed. 6 |
|||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | |||||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | |||||||||
java.lang.Objectjava.util.concurrent.ThreadPoolExecutor.DiscardOldestPolicy
public static class ThreadPoolExecutor.DiscardOldestPolicy
executor がシャットダウンしていない場合に、もっとも古い未処理の要求を破棄して execute を再試行する、拒否されたタスクのハンドラです。シャットダウンしている場合、タスクは破棄されます。
| コンストラクタの概要 | |
|---|---|
ThreadPoolExecutor.DiscardOldestPolicy()
指定された executor の DiscardOldestPolicy を作成します。 |
|
| メソッドの概要 | |
|---|---|
void |
rejectedExecution(Runnable r,
ThreadPoolExecutor e)
executor がシャットダウンしないかぎり、タスクがすぐに利用可能な場合に executor が実行するはずの次のタスクを取得して無視し、タスク r の実行を再度試みます。 |
| クラス java.lang.Object から継承されたメソッド |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| コンストラクタの詳細 |
|---|
public ThreadPoolExecutor.DiscardOldestPolicy()
| メソッドの詳細 |
|---|
public void rejectedExecution(Runnable r,
ThreadPoolExecutor e)
RejectedExecutionHandler 内の rejectedExecutionr - 実行されることを要求された実行可能なタスクe - このタスクの実行を試みる executor
|
JavaTM Platform Standard Ed. 6 |
|||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | |||||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | |||||||||
Copyright 2009 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms. Documentation Redistribution Policy も参照してください。