|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.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 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 Collection
add
in interface List
add
in class Queue
public boolean addAll(int arg0, Collection arg1)
addAll
in interface List
addAll
in class AbstractList
public boolean addAll(Collection arg0)
addAll
in interface Collection
addAll
in interface List
addAll
in class AbstractCollection
public boolean offer(Object o)
offer
in class Queue
public int capacity()
Queue
capacity
in class Queue
public void clear()
Queue
clear
in interface Collection
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 Collection
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 Collection
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)
equals
in interface Collection
equals
in interface List
equals
in class AbstractList
public int hashCode()
hashCode
in interface Collection
hashCode
in interface List
hashCode
in class AbstractList
public int indexOf(Object o)
indexOf
in interface List
indexOf
in class AbstractList
public Iterator iterator()
iterator
in interface Iterable
iterator
in interface Collection
iterator
in interface List
iterator
in class AbstractList
public int lastIndexOf(Object o)
lastIndexOf
in interface List
lastIndexOf
in class AbstractList
public ListIterator listIterator()
listIterator
in interface List
listIterator
in class AbstractList
public ListIterator listIterator(int index)
listIterator
in interface List
listIterator
in class AbstractList
public List subList(int fromIndex, int toIndex)
subList
in interface List
subList
in class AbstractList
public boolean contains(Object o)
contains
in interface Collection
contains
in interface List
contains
in class AbstractCollection
public boolean containsAll(Collection arg0)
containsAll
in interface Collection
containsAll
in interface List
containsAll
in class AbstractCollection
public boolean remove(Object o)
remove
in interface Collection
remove
in interface List
remove
in class AbstractCollection
public boolean removeAll(Collection arg0)
removeAll
in interface Collection
removeAll
in interface List
removeAll
in class AbstractCollection
public boolean retainAll(Collection arg0)
retainAll
in interface Collection
retainAll
in interface List
retainAll
in class AbstractCollection
public Object[] toArray()
toArray
in interface Collection
toArray
in interface List
toArray
in class AbstractCollection
public Object[] toArray(Object[] arg0)
toArray
in interface Collection
toArray
in interface List
toArray
in class AbstractCollection
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 |