Uses of Interface
java.util.Queue
Packages that useQueue Package Description java.util 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.java.util.concurrent Utility classes commonly useful in concurrent programming.Uses ofQueue injava.util
Subinterfaces ofQueue injava.util Modifier and Type Interface Description interfaceDeque<E>A linear collection that supports element insertion and removal at both ends.Classes injava.util that implementQueue Modifier and Type Class Description classAbstractQueue<E>This class provides skeletal implementations of someQueueoperations.classArrayDeque<E>Resizable-array implementation of theDequeinterface.classLinkedList<E>Doubly-linked list implementation of theListandDequeinterfaces.classPriorityQueue<E>An unbounded priorityqueue based on a priority heap.Methods injava.util that returnQueue Modifier and Type Method Description static <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.Methods injava.util with parameters of typeQueue Modifier and Type Method Description static <E> Queue<E>Collections. checkedQueue(Queue<E> queue,Class<E> type)Returns a dynamically typesafe view of the specified queue.Uses ofQueue injava.util.concurrent
Subinterfaces ofQueue injava.util.concurrent Modifier and Type Interface Description interfaceBlockingDeque<E>ADequethat 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.interfaceBlockingQueue<E>AQueuethat 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.interfaceTransferQueue<E>ABlockingQueuein which producers may wait for consumers to receive elements.Classes injava.util.concurrent that implementQueue Modifier and Type Class Description classArrayBlockingQueue<E>A boundedblocking queue backed by an array.classConcurrentLinkedDeque<E>An unbounded concurrentdeque based on linked nodes.classConcurrentLinkedQueue<E>An unbounded thread-safequeue based on linked nodes.classDelayQueue<E extendsDelayed>An unboundedblocking queue ofDelayedelements, in which an element can only be taken when its delay has expired.classLinkedBlockingDeque<E>An optionally-boundedblocking deque based on linked nodes.classLinkedBlockingQueue<E>An optionally-boundedblocking queue based on linked nodes.classLinkedTransferQueue<E>An unboundedTransferQueuebased on linked nodes.classPriorityBlockingQueue<E>An unboundedblocking queue that uses the same ordering rules as classPriorityQueueand supplies blocking retrieval operations.classSynchronousQueue<E>Ablocking queue in which each insert operation must wait for a corresponding remove operation by another thread, and vice versa.