|
Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference 11g Release 1 (11.1.1.7.0) E13403-08 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object oracle.javatools.util.SynchronizedQueue
public class SynchronizedQueue
An unbounded synchronized queue.
Constructor Summary | |
---|---|
SynchronizedQueue()
|
Method Summary | |
---|---|
void |
add(java.lang.Object object)
Adds an object to this queue. |
void |
clear()
Clears this queue. |
java.lang.Object |
first()
Gets the first object in this queue. |
boolean |
isEmpty()
Gets whether this queue is empty. |
boolean |
isEnabled()
Gets whether this queue is enabled |
java.lang.Object |
last()
Gets the last object in this queue. |
java.lang.Object |
remove()
Removes an object from this queue; blocks if this queue is empty. |
java.lang.Object |
remove(long timeout)
Removes an object from this queue; blocks for a specified interval if this queue is empty. |
void |
setEnabled(boolean enabled)
Sets whether this queue is enabled. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SynchronizedQueue()
Method Detail |
---|
public void add(java.lang.Object object)
object
- A non-null object.public java.lang.Object remove() throws java.lang.InterruptedException
java.lang.InterruptedException
public java.lang.Object remove(long timeout) throws java.lang.InterruptedException
timeout
- A long giving the number of milliseconds to wait.
java.lang.InterruptedException
public void clear()
public void setEnabled(boolean enabled)
public boolean isEnabled()
public boolean isEmpty()
public java.lang.Object first()
public java.lang.Object last()
|
Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference 11g Release 1 (11.1.1.7.0) E13403-08 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |