Package org.eclipse.emf.cdo.common.util
Class CDOQueryQueue<E>
- java.lang.Object
-
- org.eclipse.emf.cdo.common.util.CDOQueryQueue<E>
-
- All Implemented Interfaces:
java.lang.Iterable<E>
,java.util.Collection<E>
,java.util.Queue<E>
,org.eclipse.net4j.util.collection.Closeable
public class CDOQueryQueue<E> extends java.lang.Object implements java.util.Queue<E>, org.eclipse.net4j.util.collection.Closeable
Thequeue
that represents the result of a CDOQuery.- Since:
- 2.0
- Author:
- Simon McDuff
- No Implement
- This interface is not intended to be implemented by clients.
- No Extend
- This interface is not intended to be extended by clients.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description class
CDOQueryQueue.BlockingCloseableIteratorImpl
A blocking iterator that takes elements from aCDOQueryQueue
.
-
Constructor Summary
Constructors Constructor Description CDOQueryQueue()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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()
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
setException
public void setException(java.lang.Throwable exception)
-
close
public void close()
- Specified by:
close
in interfaceorg.eclipse.net4j.util.collection.Closeable
-
isClosed
public boolean isClosed()
- Specified by:
isClosed
in interfaceorg.eclipse.net4j.util.collection.Closeable
-
add
public boolean add(E e)
-
clear
public void clear()
- Specified by:
clear
in interfacejava.util.Collection<E>
-
contains
public boolean contains(java.lang.Object o)
- Specified by:
contains
in interfacejava.util.Collection<E>
-
equals
public boolean equals(java.lang.Object obj)
- Specified by:
equals
in interfacejava.util.Collection<E>
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Specified by:
hashCode
in interfacejava.util.Collection<E>
- Overrides:
hashCode
in classjava.lang.Object
-
isEmpty
public boolean isEmpty()
- Specified by:
isEmpty
in interfacejava.util.Collection<E>
-
iterator
public BlockingCloseableIterator<E> iterator()
-
offer
public boolean offer(E e, long timeout, java.util.concurrent.TimeUnit unit)
-
poll
public E poll(long timeout, java.util.concurrent.TimeUnit unit) throws java.lang.InterruptedException
- Throws:
java.lang.InterruptedException
-
put
public void put(E e)
-
remainingCapacity
public int remainingCapacity()
-
remove
public boolean remove(java.lang.Object o)
- Specified by:
remove
in interfacejava.util.Collection<E>
-
size
public int size()
- Specified by:
size
in interfacejava.util.Collection<E>
-
take
public E take() throws java.lang.InterruptedException
- Throws:
java.lang.InterruptedException
-
toArray
public java.lang.Object[] toArray()
- Specified by:
toArray
in interfacejava.util.Collection<E>
-
toArray
public java.lang.Object[] toArray(java.lang.Object[] a)
- Specified by:
toArray
in interfacejava.util.Collection<E>
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
comparator
public java.util.Comparator<?> comparator()
-
containsAll
public boolean containsAll(java.util.Collection<?> c)
- Specified by:
containsAll
in interfacejava.util.Collection<E>
-
addAll
public boolean addAll(java.util.Collection<? extends E> c)
- Specified by:
addAll
in interfacejava.util.Collection<E>
-
removeAll
public boolean removeAll(java.util.Collection<?> c)
- Specified by:
removeAll
in interfacejava.util.Collection<E>
-
retainAll
public boolean retainAll(java.util.Collection<?> c)
- Specified by:
retainAll
in interfacejava.util.Collection<E>
-
-