public class EasyDelayQueue<E> extends AbstractQueue<E> implements BlockingQueue<E>
| 构造器和说明 |
|---|
EasyDelayQueue(java.time.Duration defaultDelay) |
| 限定符和类型 | 方法和说明 |
|---|---|
int |
drainTo(Collection<? super E> c) |
int |
drainTo(Collection<? super E> c,
int maxElements) |
Iterator<E> |
iterator() |
boolean |
offer(E e) |
boolean |
offer(E e,
java.time.Duration delay) |
boolean |
offer(E e,
long timeout,
TimeUnit unit) |
E |
peek() |
E |
poll() |
E |
poll(long timeout,
TimeUnit unit) |
void |
put(E e) |
int |
remainingCapacity() |
int |
size() |
E |
take() |
contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitadd, contains, removeaddAll, clear, containsAll, equals, hashCode, isEmpty, parallelStream, removeAll, removeIf, retainAll, spliterator, stream, toArray, toArraypublic Iterator<E> iterator()
iterator 在接口中 Iterable<E>iterator 在接口中 Collection<E>iterator 在类中 AbstractCollection<E>public int size()
size 在接口中 Collection<E>size 在类中 AbstractCollection<E>public boolean offer(E e, java.time.Duration delay)
public void put(E e) throws InterruptedException
put 在接口中 BlockingQueue<E>InterruptedExceptionpublic boolean offer(E e, long timeout, TimeUnit unit) throws InterruptedException
offer 在接口中 BlockingQueue<E>InterruptedExceptionpublic E take() throws InterruptedException
take 在接口中 BlockingQueue<E>InterruptedExceptionpublic E poll(long timeout, TimeUnit unit) throws InterruptedException
poll 在接口中 BlockingQueue<E>InterruptedExceptionpublic int remainingCapacity()
remainingCapacity 在接口中 BlockingQueue<E>public int drainTo(Collection<? super E> c)
drainTo 在接口中 BlockingQueue<E>public int drainTo(Collection<? super E> c, int maxElements)
drainTo 在接口中 BlockingQueue<E>Copyright © 2022. All rights reserved.