E - Type of the queue element.public class GridBoundedPriorityQueue<E> extends PriorityQueue<E>
PriorityQueue.| Constructor and Description |
|---|
GridBoundedPriorityQueue(int maxCap,
Comparator<? super E> cmp)
Creates a bounded priority queue with the specified maximum size.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
offer(E e) |
add, clear, comparator, contains, iterator, peek, poll, remove, size, spliterator, toArray, toArrayaddAll, element, removecontainsAll, isEmpty, removeAll, retainAll, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitcontainsAll, equals, hashCode, isEmpty, parallelStream, removeAll, removeIf, retainAll, streampublic GridBoundedPriorityQueue(int maxCap,
Comparator<? super E> cmp)
maxCap elements would be kept in the queue.maxCap - Maximum size of the queue.cmp - Comparator that orders the elements.
Follow @ApacheIgnite
Ignite Database and Caching Platform : ver. 2.15.0 Release Date : April 25 2023