|
||||||||||
| 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,
Object o)
|
boolean |
add(Object o)
|
boolean |
addAll(Collection arg0)
|
boolean |
addAll(int arg0,
Collection arg1)
|
int |
capacity()
Returns the capacity of this queue. |
void |
clear()
Clears this queue. |
boolean |
contains(Object o)
|
boolean |
containsAll(Collection arg0)
|
Object |
element()
|
boolean |
equals(Object o)
|
Object |
first()
Returns the first element of the queue. |
Object |
get(int idx)
|
int |
hashCode()
|
int |
indexOf(Object o)
|
boolean |
isEmpty()
Returns true if the queue is empty. |
Iterator |
iterator()
|
Object |
last()
Returns the last element of the queue. |
int |
lastIndexOf(Object o)
|
ListIterator |
listIterator()
|
ListIterator |
listIterator(int index)
|
boolean |
offer(Object o)
|
Object |
peek()
|
Object |
poll()
|
Object |
pop()
Dequeues from this queue. |
void |
push(Object obj)
Enqueue into this queue. |
Object |
remove()
|
Object |
remove(int idx)
|
boolean |
remove(Object o)
|
boolean |
removeAll(Collection arg0)
|
boolean |
retainAll(Collection arg0)
|
Object |
set(int idx,
Object o)
|
int |
size()
Returns the number of elements in the queue. |
List |
subList(int fromIndex,
int toIndex)
|
Object[] |
toArray()
|
Object[] |
toArray(Object[] arg0)
|
String |
toString()
|
void |
waitForNewItem()
Waits until any elements are in this queue. |
| Methods inherited from class org.apache.mina.util.Queue |
|---|
byteSize |
| 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 InterruptedException
InterruptedException - if the current thread is interruptedpublic void push(Object obj)
Queue
push in class Queue
public void add(int idx,
Object o)
add in interface Listadd in class Queuepublic boolean add(Object o)
add in interface Collectionadd in interface Listadd in class Queue
public boolean addAll(int arg0,
Collection arg1)
addAll in interface ListaddAll in class AbstractListpublic boolean addAll(Collection arg0)
addAll in interface CollectionaddAll in interface ListaddAll in class AbstractCollectionpublic boolean offer(Object o)
offer in class Queuepublic int capacity()
Queue
capacity in class Queuepublic void clear()
Queue
clear in interface Collectionclear in interface Listclear in class Queuepublic Object first()
Queue
first in class Queuenull, if the queue is empty, or the element is
really null.public Object get(int idx)
get in interface Listget in class Queuepublic boolean isEmpty()
Queuetrue if the queue is empty.
isEmpty in interface CollectionisEmpty in interface ListisEmpty in class Queuepublic Object last()
Queue
last in class Queuenull, if the queue is empty, or the element is
really null.public 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 Collectionsize in interface Listsize in class Queuepublic String toString()
toString in class Queuepublic Object remove(int idx)
remove in interface Listremove in class Queue
public Object set(int idx,
Object o)
set in interface Listset in class Queuepublic boolean equals(Object o)
equals in interface Collectionequals in interface Listequals in class AbstractListpublic int hashCode()
hashCode in interface CollectionhashCode in interface ListhashCode in class AbstractListpublic int indexOf(Object o)
indexOf in interface ListindexOf in class AbstractListpublic Iterator iterator()
iterator in interface Iterableiterator in interface Collectioniterator in interface Listiterator in class AbstractListpublic int lastIndexOf(Object o)
lastIndexOf in interface ListlastIndexOf in class AbstractListpublic ListIterator listIterator()
listIterator in interface ListlistIterator in class AbstractListpublic ListIterator listIterator(int index)
listIterator in interface ListlistIterator in class AbstractList
public List subList(int fromIndex,
int toIndex)
subList in interface ListsubList in class AbstractListpublic boolean contains(Object o)
contains in interface Collectioncontains in interface Listcontains in class AbstractCollectionpublic boolean containsAll(Collection arg0)
containsAll in interface CollectioncontainsAll in interface ListcontainsAll in class AbstractCollectionpublic boolean remove(Object o)
remove in interface Collectionremove in interface Listremove in class AbstractCollectionpublic boolean removeAll(Collection arg0)
removeAll in interface CollectionremoveAll in interface ListremoveAll in class AbstractCollectionpublic boolean retainAll(Collection arg0)
retainAll in interface CollectionretainAll in interface ListretainAll in class AbstractCollectionpublic Object[] toArray()
toArray in interface CollectiontoArray in interface ListtoArray in class AbstractCollectionpublic Object[] toArray(Object[] arg0)
toArray in interface CollectiontoArray in interface ListtoArray in class AbstractCollectionpublic Object element()
element in class Queuepublic Object peek()
peek in class Queuepublic Object poll()
poll in class Queuepublic Object remove()
remove in class Queue
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||