public class ReferenceQueue<T> extends Object
Constructor and Description |
---|
ReferenceQueue()
构造一个新的引用对象队列。
|
public Reference<? extends T> poll()
null
public Reference<? extends T> remove(long timeout) throws IllegalArgumentException, InterruptedException
该方法不提供实时保证:它的时间表超时如果通过调用Object.wait(long)
方法。
timeout
如果阳性,达
timeout
毫秒在等待引用加入队列块。如果零,块无限期。
null
IllegalArgumentException
-如果超时参数的值是负的
InterruptedException
如果超时等待中断
public Reference<? extends T> remove() throws InterruptedException
InterruptedException
-如果等待中断
Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 1993, 2014, Oracle and/or its affiliates. All rights reserved.