|
|||||||||||
| 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,
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 Listadd in class Queue
public boolean addAll(int arg0,
Collection arg1)
public boolean addAll(Collection arg0)
public boolean offer(Object o)
offer in class Queuepublic int capacity()
Queue
capacity in class Queuepublic void clear()
Queue
clear 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 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 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)
public int hashCode()
public int indexOf(Object o)
public Iterator iterator()
public int lastIndexOf(Object o)
public ListIterator listIterator()
public ListIterator listIterator(int index)
public List subList(int fromIndex,
int toIndex)
public boolean contains(Object o)
public boolean containsAll(Collection arg0)
public boolean remove(Object o)
public boolean removeAll(Collection arg0)
public boolean retainAll(Collection arg0)
public Object[] toArray()
public Object[] toArray(Object[] arg0)
public 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 | ||||||||||