|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.util.AbstractCollection<E>
java.util.AbstractList
org.apache.mina.util.Queue
org.apache.mina.util.BlockingQueue
public class 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.Collectionadd in interface java.util.Listadd in class Queue
public boolean addAll(int arg0,
java.util.Collection arg1)
addAll in interface java.util.ListaddAll in class java.util.AbstractListpublic boolean addAll(java.util.Collection arg0)
addAll in interface java.util.CollectionaddAll in interface java.util.ListaddAll in class java.util.AbstractCollectionpublic 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.Collectionclear 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.CollectionisEmpty 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.Collectionsize 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)
equals in interface java.util.Collectionequals in interface java.util.Listequals in class java.util.AbstractListpublic int hashCode()
hashCode in interface java.util.CollectionhashCode in interface java.util.ListhashCode in class java.util.AbstractListpublic int indexOf(java.lang.Object o)
indexOf in interface java.util.ListindexOf in class java.util.AbstractListpublic java.util.Iterator iterator()
iterator in interface java.lang.Iterableiterator in interface java.util.Collectioniterator in interface java.util.Listiterator in class java.util.AbstractListpublic int lastIndexOf(java.lang.Object o)
lastIndexOf in interface java.util.ListlastIndexOf in class java.util.AbstractListpublic java.util.ListIterator listIterator()
listIterator in interface java.util.ListlistIterator in class java.util.AbstractListpublic java.util.ListIterator listIterator(int index)
listIterator in interface java.util.ListlistIterator in class java.util.AbstractList
public java.util.List subList(int fromIndex,
int toIndex)
subList in interface java.util.ListsubList in class java.util.AbstractListpublic boolean contains(java.lang.Object o)
contains in interface java.util.Collectioncontains in interface java.util.Listcontains in class java.util.AbstractCollectionpublic boolean containsAll(java.util.Collection arg0)
containsAll in interface java.util.CollectioncontainsAll in interface java.util.ListcontainsAll in class java.util.AbstractCollectionpublic boolean remove(java.lang.Object o)
remove in interface java.util.Collectionremove in interface java.util.Listremove in class java.util.AbstractCollectionpublic boolean removeAll(java.util.Collection arg0)
removeAll in interface java.util.CollectionremoveAll in interface java.util.ListremoveAll in class java.util.AbstractCollectionpublic boolean retainAll(java.util.Collection arg0)
retainAll in interface java.util.CollectionretainAll in interface java.util.ListretainAll in class java.util.AbstractCollectionpublic java.lang.Object[] toArray()
toArray in interface java.util.CollectiontoArray in interface java.util.ListtoArray in class java.util.AbstractCollectionpublic java.lang.Object[] toArray(java.lang.Object[] arg0)
toArray in interface java.util.CollectiontoArray in interface java.util.ListtoArray in class java.util.AbstractCollectionpublic 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 | ||||||||