Java java.util.concurrent ConcurrentLinkedQueue fields, constructors, methods, implement or subclass

Example usage for Java java.util.concurrent ConcurrentLinkedQueue fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for java.util.concurrent ConcurrentLinkedQueue.

The text is from its open source code.

Subclass

java.util.concurrent.ConcurrentLinkedQueue has subclasses.
Click this link to see all its subclasses.

Constructor

ConcurrentLinkedQueue()
Creates a ConcurrentLinkedQueue that is initially empty.
ConcurrentLinkedQueue(Collection c)
Creates a ConcurrentLinkedQueue initially containing the elements of the given collection, added in traversal order of the collection's iterator.

Method

booleanadd(E e)
Inserts the specified element at the tail of this queue.
booleanaddAll(Collection c)
Appends all of the elements in the specified collection to the end of this queue, in the order that they are returned by the specified collection's iterator.
voidclear()
booleancontains(Object o)
Returns true if this queue contains the specified element.
voidforEach(Consumer action)
booleanisEmpty()
Returns true if this queue contains no elements.
Iteratoriterator()
Returns an iterator over the elements in this queue in proper sequence.
voidnotifyAll()
Wakes up all threads that are waiting on this object's monitor.
booleanoffer(E e)
Inserts the specified element at the tail of this queue.
Epeek()
Epoll()
Eremove()
Retrieves and removes the head of this queue.
booleanremove(Object o)
Removes a single instance of the specified element from this queue, if it is present.
booleanremoveAll(Collection c)
intsize()
Returns the number of elements in this queue.
Streamstream()
Returns a sequential Stream with this collection as its source.
T[]toArray(T[] a)
Returns an array containing all of the elements in this queue, in proper sequence; the runtime type of the returned array is that of the specified array.
voidwait()
Causes the current thread to wait until it is awakened, typically by being notified or interrupted.