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