|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.util.AbstractCollection
java.util.AbstractList
org.apache.mina.util.Queue
org.apache.mina.util.BlockingQueue
A synchronized version of Queue.
| Field Summary |
| Fields inherited from class java.util.AbstractList |
modCount |
| Constructor Summary | |
BlockingQueue()
|
|
| Method Summary | |
void |
add(int idx,
java.lang.Object o)
|
boolean |
add(java.lang.Object o)
|
boolean |
addAll(java.util.Collection arg0)
|
boolean |
addAll(int arg0,
java.util.Collection arg1)
|
int |
capacity()
Returns the capacity of this queue. |
void |
clear()
Clears this queue. |
boolean |
contains(java.lang.Object o)
|
boolean |
containsAll(java.util.Collection arg0)
|
java.lang.Object |
element()
|
boolean |
equals(java.lang.Object o)
|
java.lang.Object |
first()
Returns the first element of the queue. |
java.lang.Object |
get(int idx)
|
int |
hashCode()
|
int |
indexOf(java.lang.Object o)
|
boolean |
isEmpty()
Returns true if the queue is empty. |
java.util.Iterator |
iterator()
|
java.lang.Object |
last()
Returns the last element of the queue. |
int |
lastIndexOf(java.lang.Object o)
|
java.util.ListIterator |
listIterator()
|
java.util.ListIterator |
listIterator(int index)
|
boolean |
offer(java.lang.Object o)
|
java.lang.Object |
peek()
|
java.lang.Object |
poll()
|
java.lang.Object |
pop()
Dequeues from this queue. |
void |
push(java.lang.Object obj)
Enqueue into this queue. |
java.lang.Object |
remove()
|
java.lang.Object |
remove(int idx)
|
boolean |
remove(java.lang.Object o)
|
boolean |
removeAll(java.util.Collection arg0)
|
boolean |
retainAll(java.util.Collection arg0)
|
java.lang.Object |
set(int idx,
java.lang.Object o)
|
int |
size()
Returns the number of elements in the queue. |
java.util.List |
subList(int fromIndex,
int toIndex)
|
java.lang.Object[] |
toArray()
|
java.lang.Object[] |
toArray(java.lang.Object[] arg0)
|
java.lang.String |
toString()
|
void |
waitForNewItem()
Waits until any elements are in this queue. |
| Methods inherited from class java.util.AbstractList |
removeRange |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public BlockingQueue()
| Method Detail |
public void waitForNewItem()
throws java.lang.InterruptedException
java.lang.InterruptedException - if the current thread is interruptedpublic void push(java.lang.Object obj)
Queue
push in class Queue
public void add(int idx,
java.lang.Object o)
add in interface java.util.Listadd in class Queuepublic boolean add(java.lang.Object o)
add in interface java.util.Listadd in class Queue
public boolean addAll(int arg0,
java.util.Collection arg1)
public boolean addAll(java.util.Collection arg0)
public boolean offer(java.lang.Object o)
offer in class Queuepublic int capacity()
Queue
capacity in class Queuepublic void clear()
Queue
clear in interface java.util.Listclear in class Queuepublic java.lang.Object first()
Queue
first in class Queuenull, if the queue is empty, or the element is
really null.public java.lang.Object get(int idx)
get in interface java.util.Listget in class Queuepublic boolean isEmpty()
Queuetrue if the queue is empty.
isEmpty in interface java.util.ListisEmpty in class Queuepublic java.lang.Object last()
Queue
last in class Queuenull, if the queue is empty, or the element is
really null.public java.lang.Object pop()
Queue
pop in class Queuenull, if this queue is empty or the element is
really null.public int size()
Queue
size in interface java.util.Listsize in class Queuepublic java.lang.String toString()
toString in class Queuepublic java.lang.Object remove(int idx)
remove in interface java.util.Listremove in class Queue
public java.lang.Object set(int idx,
java.lang.Object o)
set in interface java.util.Listset in class Queuepublic boolean equals(java.lang.Object o)
public int hashCode()
public int indexOf(java.lang.Object o)
public java.util.Iterator iterator()
public int lastIndexOf(java.lang.Object o)
public java.util.ListIterator listIterator()
public java.util.ListIterator listIterator(int index)
public java.util.List subList(int fromIndex,
int toIndex)
public boolean contains(java.lang.Object o)
public boolean containsAll(java.util.Collection arg0)
public boolean remove(java.lang.Object o)
public boolean removeAll(java.util.Collection arg0)
public boolean retainAll(java.util.Collection arg0)
public java.lang.Object[] toArray()
public java.lang.Object[] toArray(java.lang.Object[] arg0)
public java.lang.Object element()
element in class Queuepublic java.lang.Object peek()
peek in class Queuepublic java.lang.Object poll()
poll in class Queuepublic java.lang.Object remove()
remove in class Queue
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||