public class CDOQueryQueue<E> extends Object implements Queue<E>, Closeable
queue
that represents the result of a CDOQuery.Modifier and Type | Class and Description |
---|---|
class |
CDOQueryQueue.BlockingCloseableIteratorImpl
A blocking iterator that takes elements from a
CDOQueryQueue . |
Constructor and Description |
---|
CDOQueryQueue() |
Modifier and Type | Method and Description |
---|---|
boolean |
add(E e) |
boolean |
addAll(Collection<? extends E> c) |
void |
clear() |
void |
close() |
Comparator<?> |
comparator() |
boolean |
contains(Object o) |
boolean |
containsAll(Collection<?> c) |
E |
element() |
boolean |
equals(Object obj) |
int |
hashCode() |
boolean |
isClosed() |
boolean |
isEmpty() |
BlockingCloseableIterator<E> |
iterator() |
boolean |
offer(E e) |
boolean |
offer(E e,
long timeout,
TimeUnit unit) |
E |
peek() |
E |
poll() |
E |
poll(long timeout,
TimeUnit unit) |
void |
put(E e) |
int |
remainingCapacity() |
E |
remove() |
boolean |
remove(Object o) |
boolean |
removeAll(Collection<?> c) |
boolean |
retainAll(Collection<?> c) |
void |
setException(Throwable exception) |
int |
size() |
E |
take() |
Object[] |
toArray() |
Object[] |
toArray(Object[] a) |
String |
toString() |
public void setException(Throwable exception)
public boolean add(E e)
public void clear()
clear
in interface Collection<E>
public boolean contains(Object o)
contains
in interface Collection<E>
public boolean equals(Object obj)
equals
in interface Collection<E>
equals
in class Object
public int hashCode()
hashCode
in interface Collection<E>
hashCode
in class Object
public boolean isEmpty()
isEmpty
in interface Collection<E>
public BlockingCloseableIterator<E> iterator()
public E poll(long timeout, TimeUnit unit) throws InterruptedException
InterruptedException
public void put(E e)
public int remainingCapacity()
public boolean remove(Object o)
remove
in interface Collection<E>
public int size()
size
in interface Collection<E>
public E take() throws InterruptedException
InterruptedException
public Object[] toArray()
toArray
in interface Collection<E>
public Object[] toArray(Object[] a)
toArray
in interface Collection<E>
public Comparator<?> comparator()
public boolean containsAll(Collection<?> c)
containsAll
in interface Collection<E>
public boolean addAll(Collection<? extends E> c)
addAll
in interface Collection<E>
public boolean removeAll(Collection<?> c)
removeAll
in interface Collection<E>
public boolean retainAll(Collection<?> c)
retainAll
in interface Collection<E>
Copyright (c) 2011-2014 Eike Stepper (Berlin, Germany) and others.