Example usage for Java java.util.concurrent DelayQueue fields, constructors, methods, implement or subclass
The text is from its open source code.
DelayQueue() Creates a new DelayQueue that is initially empty. | |
DelayQueue(Collection extends E> c) Creates a DelayQueue initially containing the elements of the given collection of Delayed instances. |
boolean | contains(Object o) Returns true if this queue contains the specified element. |
boolean | offer(E e) Inserts the specified element into this delay queue. |
E | poll() Retrieves and removes the head of this queue, or returns null if this queue has no elements with an expired delay. |
boolean | remove(Object o) Removes a single instance of the specified element from this queue, if it is present, whether or not it has expired. |
int | size() |