|
JavaTM 2 Platform Standard Ed. 5.0 |
|||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | |||||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | |||||||||
java.lang.Objectjava.lang.ref.ReferenceQueue<T>
public class ReferenceQueue<T>
参照キューです。到達可能性が適切に変更されたことが検出されると、登録されている参照オブジェクトはガベージコレクタによって参照キューに追加されます。
| コンストラクタの概要 | |
|---|---|
ReferenceQueue()
新しい参照オブジェクトキューを構築します。 |
|
| メソッドの概要 | |
|---|---|
Reference<? extends T> |
poll()
このキューをポーリングして、参照オブジェクトが利用可能かどうかを確認します。 |
Reference<? extends T> |
remove()
このキューの次の参照オブジェクトを削除します。 |
Reference<? extends T> |
remove(long timeout)
このキューの次の参照オブジェクトを削除します。 |
| クラス java.lang.Object から継承されたメソッド |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| コンストラクタの詳細 |
|---|
public ReferenceQueue()
| メソッドの詳細 |
|---|
public Reference<? extends T> poll()
null
public Reference<? extends T> remove(long timeout)
throws IllegalArgumentException,
InterruptedException
このメソッドはリアルタイム保証を行いません。Object.wait(long) メソッド呼び出しと同様にタイムアウトのスケジュールを作成します。
timeout - 値が正の場合、このキューに参照が追加されるのを待つ間、timeout ミリ秒の間ブロックされる。0 の場合、無期限にブロックされる
null
IllegalArgumentException - timeout 引数の値が負の場合
InterruptedException - タイムアウト待機中に割り込まれた場合
public Reference<? extends T> remove()
throws InterruptedException
InterruptedException - 待機中に割り込まれた場合
|
JavaTM 2 Platform Standard Ed. 5.0 |
|||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | |||||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | |||||||||
Copyright 2004 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms. Documentation Redistribution Policy も参照してください。