Module com.github.akurilov.commons
Class BoundedPriorityBlockngQueue<E>
- java.lang.Object
-
- java.util.AbstractCollection<E>
-
- java.util.AbstractQueue<E>
-
- java.util.concurrent.PriorityBlockingQueue<E>
-
- com.github.akurilov.commons.collection.BoundedPriorityBlockngQueue<E>
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Iterable<E>,java.util.Collection<E>,java.util.concurrent.BlockingQueue<E>,java.util.Queue<E>
public class BoundedPriorityBlockngQueue<E> extends java.util.concurrent.PriorityBlockingQueue<E> implements java.util.concurrent.BlockingQueue<E>- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description BoundedPriorityBlockngQueue(int capacity, java.util.Comparator<E> comparator)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intdrainTo(java.util.Collection<? super E> c, int maxElements)booleanoffer(E element)-
Methods inherited from class java.util.concurrent.PriorityBlockingQueue
add, clear, comparator, contains, drainTo, forEach, iterator, offer, peek, poll, poll, put, remainingCapacity, remove, removeAll, removeIf, retainAll, size, spliterator, take, toArray, toArray, toString
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface java.util.concurrent.BlockingQueue
add, contains, drainTo, offer, poll, put, remainingCapacity, remove, take
-
-