Class RoundRobinBlockingQueue<E>
- java.lang.Object
- 
- org.eclipse.net4j.util.collection.RoundRobinBlockingQueue<E>
 
- 
- All Implemented Interfaces:
- java.lang.Iterable<E>,- java.util.Collection<E>,- java.util.concurrent.BlockingQueue<E>,- java.util.Queue<E>
 
 public class RoundRobinBlockingQueue<E> extends java.lang.Object implements java.util.concurrent.BlockingQueue<E>- Since:
- 3.1
- Author:
- Eike Stepper
 
- 
- 
Constructor SummaryConstructors Constructor Description RoundRobinBlockingQueue()
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanadd(E o)booleanaddAll(java.util.Collection<? extends E> c)voidclear()booleancontains(java.lang.Object o)booleancontainsAll(java.util.Collection<?> c)intdrainTo(java.util.Collection<? super E> c)intdrainTo(java.util.Collection<? super E> c, int maxElements)Eelement()booleanisEmpty()java.util.Iterator<E>iterator()booleanoffer(E e)booleanoffer(E o, long timeout, java.util.concurrent.TimeUnit unit)Epeek()Epoll()Epoll(long timeout, java.util.concurrent.TimeUnit unit)voidput(E o)intremainingCapacity()Eremove()booleanremove(java.lang.Object o)booleanremoveAll(java.util.Collection<?> c)booleanretainAll(java.util.Collection<?> c)intsize()Etake()java.lang.Object[]toArray()<T> T[]toArray(T[] array)java.lang.StringtoString()- 
Methods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
- 
 
- 
- 
- 
Method Detail- 
remainingCapacitypublic int remainingCapacity() - Specified by:
- remainingCapacityin interface- java.util.concurrent.BlockingQueue<E>
 
 - 
sizepublic int size() - Specified by:
- sizein interface- java.util.Collection<E>
 
 - 
isEmptypublic boolean isEmpty() - Specified by:
- isEmptyin interface- java.util.Collection<E>
 
 - 
offerpublic boolean offer(E e) 
 - 
offerpublic boolean offer(E o, long timeout, java.util.concurrent.TimeUnit unit) throws java.lang.InterruptedException - Specified by:
- offerin interface- java.util.concurrent.BlockingQueue<E>
- Throws:
- java.lang.InterruptedException
 
 - 
putpublic void put(E o) throws java.lang.InterruptedException - Specified by:
- putin interface- java.util.concurrent.BlockingQueue<E>
- Throws:
- java.lang.InterruptedException
 
 - 
addpublic boolean add(E o) 
 - 
pollpublic E poll(long timeout, java.util.concurrent.TimeUnit unit) throws java.lang.InterruptedException - Specified by:
- pollin interface- java.util.concurrent.BlockingQueue<E>
- Throws:
- java.lang.InterruptedException
 
 - 
takepublic E take() throws java.lang.InterruptedException - Specified by:
- takein interface- java.util.concurrent.BlockingQueue<E>
- Throws:
- java.lang.InterruptedException
 
 - 
removepublic boolean remove(java.lang.Object o) 
 - 
clearpublic void clear() - Specified by:
- clearin interface- java.util.Collection<E>
 
 - 
iteratorpublic java.util.Iterator<E> iterator() 
 - 
containspublic boolean contains(java.lang.Object o) 
 - 
toArraypublic java.lang.Object[] toArray() - Specified by:
- toArrayin interface- java.util.Collection<E>
 
 - 
toArraypublic <T> T[] toArray(T[] array) - Specified by:
- toArrayin interface- java.util.Collection<E>
 
 - 
containsAllpublic boolean containsAll(java.util.Collection<?> c) - Specified by:
- containsAllin interface- java.util.Collection<E>
 
 - 
addAllpublic boolean addAll(java.util.Collection<? extends E> c) - Specified by:
- addAllin interface- java.util.Collection<E>
 
 - 
removeAllpublic boolean removeAll(java.util.Collection<?> c) - Specified by:
- removeAllin interface- java.util.Collection<E>
 
 - 
retainAllpublic boolean retainAll(java.util.Collection<?> c) - Specified by:
- retainAllin interface- java.util.Collection<E>
 
 - 
drainTopublic int drainTo(java.util.Collection<? super E> c) - Specified by:
- drainToin interface- java.util.concurrent.BlockingQueue<E>
 
 - 
drainTopublic int drainTo(java.util.Collection<? super E> c, int maxElements) - Specified by:
- drainToin interface- java.util.concurrent.BlockingQueue<E>
 
 - 
toStringpublic java.lang.String toString() - Overrides:
- toStringin class- java.lang.Object
 
 
- 
 
-