Priority Blocking Queue

GPTKB entity

Statements (44)
Predicate Object
gptkbp:instance_of gptkb:river
gptkbp:bfsLayer 4
gptkbp:bfsParent gptkb:java.util.concurrent
gptkbp:allows gptkb:theorem
gptkbp:block offer, poll, put, take
gptkbp:capacity Integer. MA X_ VALUE
gptkbp:constructor Priority Blocking Queue(int capacity, Comparator<? super E> comparator)
Priority Blocking Queue()
Priority Blocking Queue(Collection<? extends E> c)
Priority Blocking Queue(int capacity)
Priority Blocking Queue(Priority Queue<? extends E> q)
gptkbp:focus returns the comparator used for ordering
https://www.w3.org/2000/01/rdf-schema#label Priority Blocking Queue
gptkbp:hyper_threading gptkb:theorem
gptkbp:offers adds element to the queue
gptkbp:overlooks returns the head of the queue without removing it
gptkbp:size returns the number of elements in the queue
gptkbp:technique poll(long timeout, Time Unit unit) retrieves and removes the head of the queue, waiting if necessary
contains All(Collection<?> c) checks if the queue contains all elements from the specified collection
parallel Stream() returns a parallel Stream with this collection as its source
offer(E e, long timeout, Time Unit unit) adds the specified element to the queue, waiting if necessary
to Array(T[] a) returns an array containing all elements of the specified type
retain All(Collection<?> c) retains only the elements in the queue that are contained in the specified collection
add All(Collection<? extends E> c) adds all elements from the specified collection
drain To(Collection<? super E> c) removes all available elements
add(E e) adds the specified element to the queue
clear() removes all elements from the queue
equals(Object o) checks if two queues are equal
contains(Object o) checks if the queue contains the specified element
hash Code() returns the hash code of the queue
is Empty() checks if the queue is empty
iterator() returns an iterator over the elements
remove(Object o) removes a single instance of the specified element
put(E e) blocks until space is available
remove() removes the head of the queue
spliterator() creates a spliterator for the queue
take() blocks until an element is available
remove All(Collection<?> c) removes all elements in the queue that are contained in the specified collection
to Array() returns an array containing all elements
for Each(Consumer<? super E> action) performs the given action for each element
stream() returns a sequential Stream with this collection as its source
drain To(Collection<? super E> c, int max Elements) removes up to max Elements
to String() returns a string representation of the queue
gptkbp:winner removes and returns the head of the queue