Uses of Interface
java.util.Queue
Packages that use Queue
Package
Description
Contains the collections framework, some internationalization support classes,
a service loader, properties, random number generation, string parsing
and scanning classes, base64 encoding and decoding, a bit array, and
several miscellaneous utility classes.
Utility classes commonly useful in concurrent programming.
-
Uses of Queue in java.util
Modifier and TypeInterfaceDescriptioninterfaceDeque<E>A linear collection that supports element insertion and removal at both ends.Modifier and TypeClassDescriptionclassThis class provides skeletal implementations of someQueueoperations.classArrayDeque<E>Resizable-array implementation of theDequeinterface.classLinkedList<E>Doubly-linked list implementation of theListandDequeinterfaces.classAn unbounded priority queue based on a priority heap.Modifier and TypeMethodDescriptionstatic <T> Queue<T> Collections.asLifoQueue(Deque<T> deque) static <E> Queue<E> Collections.checkedQueue(Queue<E> queue, Class<E> type) Returns a dynamically typesafe view of the specified queue.Modifier and TypeMethodDescriptionstatic <E> Queue<E> Collections.checkedQueue(Queue<E> queue, Class<E> type) Returns a dynamically typesafe view of the specified queue. -
Uses of Queue in java.util.concurrent
Subinterfaces of Queue in java.util.concurrentModifier and TypeInterfaceDescriptioninterfaceADequethat additionally supports blocking operations that wait for the deque to become non-empty when retrieving an element, and wait for space to become available in the deque when storing an element.interfaceAQueuethat additionally supports operations that wait for the queue to become non-empty when retrieving an element, and wait for space to become available in the queue when storing an element.interfaceABlockingQueuein which producers may wait for consumers to receive elements.Classes in java.util.concurrent that implement QueueModifier and TypeClassDescriptionclassA bounded blocking queue backed by an array.classAn unbounded concurrent deque based on linked nodes.classAn unbounded thread-safe queue based on linked nodes.classDelayQueue<E extends Delayed>An unbounded blocking queue ofDelayedelements, in which an element generally becomes eligible for removal when its delay has expired.classAn optionally-bounded blocking deque based on linked nodes.classAn optionally-bounded blocking queue based on linked nodes.classAn unboundedTransferQueuebased on linked nodes.classAn unbounded blocking queue that uses the same ordering rules as classPriorityQueueand supplies blocking retrieval operations.classA blocking queue in which each insert operation must wait for a corresponding remove operation by another thread, and vice versa.