Class 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
    The queue 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.
    • Constructor Detail

      • CDOQueryQueue

        public CDOQueryQueue()
    • Method Detail

      • setException

        public void setException​(java.lang.Throwable exception)
      • close

        public void close()
        Specified by:
        close in interface org.eclipse.net4j.util.collection.Closeable
      • isClosed

        public boolean isClosed()
        Specified by:
        isClosed in interface org.eclipse.net4j.util.collection.Closeable
      • add

        public boolean add​(E e)
        Specified by:
        add in interface java.util.Collection<E>
        Specified by:
        add in interface java.util.Queue<E>
      • clear

        public void clear()
        Specified by:
        clear in interface java.util.Collection<E>
      • contains

        public boolean contains​(java.lang.Object o)
        Specified by:
        contains in interface java.util.Collection<E>
      • element

        public E element()
        Specified by:
        element in interface java.util.Queue<E>
      • equals

        public boolean equals​(java.lang.Object obj)
        Specified by:
        equals in interface java.util.Collection<E>
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Specified by:
        hashCode in interface java.util.Collection<E>
        Overrides:
        hashCode in class java.lang.Object
      • isEmpty

        public boolean isEmpty()
        Specified by:
        isEmpty in interface java.util.Collection<E>
      • iterator

        public BlockingCloseableIterator<E> iterator()
        Specified by:
        iterator in interface java.util.Collection<E>
        Specified by:
        iterator in interface java.lang.Iterable<E>
      • offer

        public boolean offer​(E e,
                             long timeout,
                             java.util.concurrent.TimeUnit unit)
      • offer

        public boolean offer​(E e)
        Specified by:
        offer in interface java.util.Queue<E>
      • peek

        public E peek()
        Specified by:
        peek in interface java.util.Queue<E>
      • 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 E remove()
        Specified by:
        remove in interface java.util.Queue<E>
      • remove

        public boolean remove​(java.lang.Object o)
        Specified by:
        remove in interface java.util.Collection<E>
      • size

        public int size()
        Specified by:
        size in interface java.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 interface java.util.Collection<E>
      • toArray

        public java.lang.Object[] toArray​(java.lang.Object[] a)
        Specified by:
        toArray in interface java.util.Collection<E>
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • poll

        public E poll()
        Specified by:
        poll in interface java.util.Queue<E>
      • comparator

        public java.util.Comparator<?> comparator()
      • containsAll

        public boolean containsAll​(java.util.Collection<?> c)
        Specified by:
        containsAll in interface java.util.Collection<E>
      • addAll

        public boolean addAll​(java.util.Collection<? extends E> c)
        Specified by:
        addAll in interface java.util.Collection<E>
      • removeAll

        public boolean removeAll​(java.util.Collection<?> c)
        Specified by:
        removeAll in interface java.util.Collection<E>
      • retainAll

        public boolean retainAll​(java.util.Collection<?> c)
        Specified by:
        retainAll in interface java.util.Collection<E>