E
- public class Scheduler.BoundedPriorityBlockingQueue<E> extends PriorityBlockingQueue<E>
Constructor and Description |
---|
BoundedPriorityBlockingQueue(int capacity)
Constructor for Bounded priority queue with a max capacity.
|
Modifier and Type | Method and Description |
---|---|
boolean |
offer(E e) |
E |
poll() |
boolean |
remove(Object o) |
add, clear, comparator, contains, drainTo, drainTo, iterator, offer, peek, poll, put, remainingCapacity, size, spliterator, take, toArray, toArray, toString
addAll, element, remove
containsAll, isEmpty, removeAll, retainAll
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
addAll, containsAll, equals, hashCode, isEmpty, parallelStream, removeAll, removeIf, retainAll, stream
public BoundedPriorityBlockingQueue(int capacity)
capacity
- public boolean offer(E e)
offer
in interface BlockingQueue<E>
offer
in interface Queue<E>
offer
in class PriorityBlockingQueue<E>
public E poll()
public boolean remove(Object o)
remove
in interface Collection<E>
remove
in interface BlockingQueue<E>
remove
in class PriorityBlockingQueue<E>
Copyright © 2023. All Rights Reserved.