public class CDOQueryQueue<E> extends java.lang.Object implements java.util.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(java.util.Collection<? extends E> c) |
void |
clear() |
void |
close() |
java.util.Comparator<?> |
comparator() |
boolean |
contains(java.lang.Object o) |
boolean |
containsAll(java.util.Collection<?> c) |
E |
element() |
boolean |
equals(java.lang.Object obj) |
int |
hashCode() |
boolean |
isClosed() |
boolean |
isEmpty() |
BlockingCloseableIterator<E> |
iterator() |
boolean |
offer(E e) |
boolean |
offer(E e,
long timeout,
java.util.concurrent.TimeUnit unit) |
E |
peek() |
E |
poll() |
E |
poll(long timeout,
java.util.concurrent.TimeUnit unit) |
void |
put(E e) |
int |
remainingCapacity() |
E |
remove() |
boolean |
remove(java.lang.Object o) |
boolean |
removeAll(java.util.Collection<?> c) |
boolean |
retainAll(java.util.Collection<?> c) |
void |
setException(java.lang.Throwable exception) |
int |
size() |
E |
take() |
java.lang.Object[] |
toArray() |
java.lang.Object[] |
toArray(java.lang.Object[] a) |
java.lang.String |
toString() |
public void setException(java.lang.Throwable exception)
public boolean add(E e)
public void clear()
clear in interface java.util.Collection<E>public boolean contains(java.lang.Object o)
contains in interface java.util.Collection<E>public boolean equals(java.lang.Object obj)
equals in interface java.util.Collection<E>equals in class java.lang.Objectpublic int hashCode()
hashCode in interface java.util.Collection<E>hashCode in class java.lang.Objectpublic boolean isEmpty()
isEmpty in interface java.util.Collection<E>public BlockingCloseableIterator<E> iterator()
public boolean offer(E e, long timeout, java.util.concurrent.TimeUnit unit)
public E poll(long timeout, java.util.concurrent.TimeUnit unit) throws java.lang.InterruptedException
java.lang.InterruptedExceptionpublic void put(E e)
public int remainingCapacity()
public boolean remove(java.lang.Object o)
remove in interface java.util.Collection<E>public int size()
size in interface java.util.Collection<E>public E take() throws java.lang.InterruptedException
java.lang.InterruptedExceptionpublic java.lang.Object[] toArray()
toArray in interface java.util.Collection<E>public java.lang.Object[] toArray(java.lang.Object[] a)
toArray in interface java.util.Collection<E>public java.lang.String toString()
toString in class java.lang.Objectpublic java.util.Comparator<?> comparator()
public boolean containsAll(java.util.Collection<?> c)
containsAll in interface java.util.Collection<E>public boolean addAll(java.util.Collection<? extends E> c)
addAll in interface java.util.Collection<E>public boolean removeAll(java.util.Collection<?> c)
removeAll in interface java.util.Collection<E>public boolean retainAll(java.util.Collection<?> c)
retainAll in interface java.util.Collection<E>Copyright (c) 2004-2019 Eike Stepper (Loehne, Germany) and others.
All rights reserved. This program and the accompanying materials are made available under the terms of the Eclipse Public License v1.0 which accompanies this distribution, and is available at http://www.eclipse.org/legal/epl-v10.html