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

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

Introduction

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

The text is from its open source code.

Subclass

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

Constructor

LinkedBlockingQueue()
Creates a LinkedBlockingQueue with a capacity of Integer#MAX_VALUE .
LinkedBlockingQueue(int capacity)
Creates a LinkedBlockingQueue with the given (fixed) capacity.
LinkedBlockingQueue(Collection c)
Creates a LinkedBlockingQueue with a capacity of Integer#MAX_VALUE , 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 into this queue if it is possible to do so immediately without violating capacity restrictions, returning true upon success and throwing an IllegalStateException if no space is currently available.
booleanaddAll(Collection c)
Adds all of the elements in the specified collection to this collection (optional operation).
voidclear()
Atomically removes all of the elements from this queue.
booleancontains(Object o)
Returns true if this queue contains the specified element.
intdrainTo(Collection c)
booleanisEmpty()
Returns true if this collection contains no elements.
booleanoffer(E e)
Inserts the specified element at the tail of this queue if it is possible to do so immediately without exceeding the queue's capacity, returning true upon success and false if this queue is full.
Epeek()
Epoll()
Epoll(long timeout, TimeUnit unit)
voidput(E e)
Inserts the specified element at the tail of this queue, waiting if necessary for space to become available.
booleanremove(Object o)
Removes a single instance of the specified element from this queue, if it is present.
intsize()
Returns the number of elements in this queue.
Etake()