Multithreading | Java BlockingQueue
What is BlockingQueue? BlockingQueue is a data structure to provide Queue like capability in multithreading environment. put() offer() -> Exception #blocking Element take() poll() poll(time, unit) -> exception boolean remove(element) drain(targetCollection) drain(targetCollection, numberOfElements) Element peek() Element element() -> exception int size() int remainingCapacity() boolean contains(Element)

What is BlockingQueue?
BlockingQueue is a data structure to provide Queue like capability in multithreading environment.
put()
offer() -> Exception #blocking
Element take()
poll()
poll(time, unit) -> exception
boolean remove(element)
drain(targetCollection)
drain(targetCollection, numberOfElements)
Element peek()
Element element() -> exception
int size()
int remainingCapacity()
boolean contains(Element)