|
|||||||||||
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 List
add
in class Queue
public boolean add(Object o)
add
in interface List
add
in class Queue
public boolean addAll(int arg0, Collection arg1)
public boolean addAll(Collection arg0)
public boolean offer(Object o)
offer
in class Queue
public int capacity()
Queue
capacity
in class Queue
public void clear()
Queue
clear
in interface List
clear
in class Queue
public Object first()
Queue
first
in class Queue
null
, if the queue is empty, or the element is
really null
.public Object get(int idx)
get
in interface List
get
in class Queue
public boolean isEmpty()
Queue
true
if the queue is empty.
isEmpty
in interface List
isEmpty
in class Queue
public Object last()
Queue
last
in class Queue
null
, if the queue is empty, or the element is
really null
.public Object pop()
Queue
pop
in class Queue
null
, if this queue is empty or the element is
really null
.public int size()
Queue
size
in interface List
size
in class Queue
public String toString()
toString
in class Queue
public Object remove(int idx)
remove
in interface List
remove
in class Queue
public Object set(int idx, Object o)
set
in interface List
set
in class Queue
public 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 Queue
public Object peek()
peek
in class Queue
public Object poll()
poll
in class Queue
public Object remove()
remove
in class Queue
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |