|
Java™ Platform Standard Ed. 6 |
|||||||||
PREV NEXT | FRAMES NO FRAMES |
Packages that use Queue | |
---|---|
java.util | Contains the collections framework, legacy collection classes, event model, date and time facilities, internationalization, and miscellaneous utility classes (a string tokenizer, a random-number generator, and a bit array). |
java.util.concurrent | Utility classes commonly useful in concurrent programming. |
Uses of Queue in java.util |
---|
Subinterfaces of Queue in java.util | |
---|---|
interface |
Deque
A linear collection that supports element insertion and removal at both ends. |
Classes in java.util that implement Queue | |
---|---|
class |
AbstractQueue
This class provides skeletal implementations of some Queue
operations. |
class |
ArrayDeque
Resizable-array implementation of the Deque interface. |
class |
LinkedList
Linked list implementation of the List interface. |
class |
PriorityQueue
An unbounded priority queue based on a priority heap. |
Methods in java.util that return Queue | ||
---|---|---|
static
|
Collections.asLifoQueue(Deque
Returns a view of a Deque as a Last-in-first-out (Lifo)
Queue . |
Uses of Queue in java.util.concurrent |
---|
Subinterfaces of Queue in java.util.concurrent | |
---|---|
interface |
BlockingDeque
A Deque that 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. |
interface |
BlockingQueue
A Queue that 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. |
Classes in java.util.concurrent that implement Queue | |
---|---|
class |
ArrayBlockingQueue
A bounded blocking queue backed by an array. |
class |
ConcurrentLinkedQueue
An unbounded thread-safe queue based on linked nodes. |
class |
DelayQueue
An unbounded blocking queue of Delayed elements, in which an element can only be taken when its delay has expired. |
class |
LinkedBlockingDeque
An optionally-bounded blocking deque based on linked nodes. |
class |
LinkedBlockingQueue
An optionally-bounded blocking queue based on linked nodes. |
class |
PriorityBlockingQueue
An unbounded blocking queue that uses the same ordering rules as class PriorityQueue and supplies
blocking retrieval operations. |
class |
SynchronousQueue
A blocking queue in which each insert operation must wait for a corresponding remove operation by another thread, and vice versa. |
|
Java™ Platform Standard Ed. 6 |
|||||||||
PREV NEXT | FRAMES NO FRAMES |
Copyright © 1993, 2015, Oracle and/or its affiliates. All rights reserved. Use is subject to license terms. Also see the documentation redistribution policy.