Tutorials
Courses
Data Structure
Java
Python
HTML
Interview Preparation
DSA
Practice Problems
C
C++
Java
Python
JavaScript
Data Science
Machine Learning
Courses
Linux
DevOps
SQL
Web Development
System Design
Aptitude
GfG Premium
Similar Topics
Web Technologies
32.1K+ articles
DSA
19.9K+ articles
Python
19.6K+ articles
Experiences
15.8K+ articles
Interview Experiences
14.1K+ articles
School Learning
11.1K+ articles
JavaScript
9.9K+ articles
Java
9.3K+ articles
Misc
7.8K+ articles
Java - util package
1.6K+ articles
java-DelayQueue
15 posts
Recent Articles
Popular Articles
DelayQueue Class in Java
Last Updated: 11 July 2025
In Java, the DelayQueue Class is the part of the java.util.concurrent package and implements the BlockingQueue interface. DelayQueue is a specialized implementation of a b...
read more
Java
Technical Scripter
Technical Scripter 2018
Java-Collections
java-DelayQueue
DelayQueue size() method in Java with Examples
Last Updated: 06 July 2021
The size() method of DelayQueue class in Java is used to return the number of elements present in the given queue. If the number of elements is greater than Integer.MAX_VA...
read more
Java
Java - util package
java-DelayQueue
DelayQueue remove() method in Java
Last Updated: 23 December 2018
The remove() method of DelayQueue class in Java is used to remove a single instance of the given object say obj from this DelayQueue if it is present. It returns true if t...
read more
Java
Java - util package
java-DelayQueue
DelayQueue clear() method in Java
Last Updated: 14 April 2022
The clear() method of DelayQueue in Java is used to remove all of the elements in the current DelayQueue object. The queue will be empty after this call is returned. The e...
read more
Java
Java - util package
java-DelayQueue
DelayQueue add() method in Java with Examples
Last Updated: 14 January 2022
The add(E ele) method of DelayQueue class in Java is used to insert the given element into the delay queue and returns true if the element has been successfully inserted. ...
read more
Java
Java - util package
java-DelayQueue
DelayQueue put() method in Java with Examples
Last Updated: 11 August 2021
The put(E ele) method of DelayQueue class in Java is used to inserts a given element into the delay queue container. Hetre, E is the type of element maintained by this Del...
read more
Java
Java - util package
java-DelayQueue
DelayQueue poll() method in Java with Examples
Last Updated: 11 July 2025
The poll() method of DelayQueue is used to retrieve head of the DelayQueue. This method also removes the head from the DelayQueue. Thus when poll method is called, DelayQu...
read more
Java
Picked
Java-Collections
Java - util package
Java-Functions
java-DelayQueue
DelayQueue peek() method in Java with Examples
Last Updated: 11 July 2025
The peek() method of DelayQueue is used to retrieve head of the DelayQueue, but does not remove it, as in case of poll() method where head is removed from the DelayQueue.S...
read more
Java
Picked
Java-Collections
Java - util package
Java-Functions
java-DelayQueue
DelayQueue offer() method in Java with Examples
Last Updated: 11 July 2025
The offer() method of DelayQueue is used to insert specified element in the delay queue. It acts similar to add() method of DelayQueue.Syntax:public boolean offer (E e)Par...
read more
Java
Picked
Java-Collections
Java - util package
Java-Functions
java-DelayQueue
DelayQueue iterator() method in Java with Examples
Last Updated: 11 July 2025
The iterator() method of DelayQueue is used to return an iterator over all the elements in the DelayQueue. These elements can be expired or unexpired.Syntax:public Iterato...
read more
Java
Picked
Java-Collections
Java - util package
Java-Functions
java-DelayQueue
DelayQueue toArray() method in Java with Examples
Last Updated: 11 July 2025
The toArray() method of DelayQueue is used to return an array containing all the elements in DelayQueue. There elements are not in any specific order in the array.Syntax:p...
read more
Java
Picked
Java-Collections
Java - util package
Java-Functions
java-DelayQueue
DelayQueue take() method in Java with Examples
Last Updated: 11 July 2025
The take() method of DelayQueue is used to retrieve head of the DelayQueue and also removes it. Thus, the size of the DelayQueue is reduced. This function waits if an elem...
read more
Java
Picked
Java-Collections
Java - util package
Java-Functions
java-DelayQueue
DelayQueue remainingCapacity() method in Java with Examples
Last Updated: 11 July 2025
The remainingCapacity() method of DelayQueue always returns Integer.MAX_VALUE because a DelayQueue is not capacity constrained. That means, irrespective of the size of the...
read more
Java
Picked
Java-Collections
Java-Functions
java-DelayQueue
DelayQueue drainTo() method in Java with Examples
Last Updated: 11 July 2025
The drainTo(CollectionE c) method of DelayQueue removes all available elements from this DelayQueue and adds them to the given collection passed as a parameter. This metho...
read more
Java
Picked
Java-Collections
Java-Functions
java-DelayQueue
Java Program to Implement DelayQueue API
Last Updated: 21 November 2022
The DelayQueue class belongs to java.util.concurrent package. DelayQueue implements the BlockingQueue interface. DelayQueue is a specialized Priority Queue that orders ele...
read more
Java
Technical Scripter
Java Programs
Picked
Technical Scripter 2020
Java-Collections
java-DelayQueue
We use cookies to ensure you have the best browsing experience on our website. By using our site, you acknowledge that you have read and understood our
Cookie Policy
&
Privacy Policy
Got It !