|
JavaTM 2 Platform Standard Ed. 5.0 |
|||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | |||||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | |||||||||
public interface RejectedExecutionHandler
ThreadPoolExecutor で実行不可能なタスクのハンドラ
| メソッドの概要 | |
|---|---|
void |
rejectedExecution(Runnable r,
ThreadPoolExecutor executor)
execute がタスクを受け入れられない場合に、 ThreadPoolExecutor から呼び出すことのできるメソッド。 |
| メソッドの詳細 |
|---|
void rejectedExecution(Runnable r,
ThreadPoolExecutor executor)
ThreadPoolExecutor から呼び出すことのできるメソッド。これは、制限を超過したために利用可能なスレッドまたはキュースロットが存在しない場合、または Executor のシャットダウン時に発生します。
代替手段が存在しない場合、メソッドはチェックされない RejectedExecutionException をスローする場合があります。これは、execute の呼び出し側に送信されます。
r - 実行が要求された実行可能なタスクexecutor - このタスクの実行を試みる executor
RejectedExecutionException - 対処方法が存在しない場合
|
JavaTM 2 Platform Standard Ed. 5.0 |
|||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | |||||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | |||||||||
Copyright 2004 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms. Documentation Redistribution Policy も参照してください。