public final class RequestQueue<E> extends LinkedBlockingQueue<E> implements Closeable
LinkedBlockingQueue
that is extended with closing methods.Constructor and Description |
---|
RequestQueue() |
Modifier and Type | Method and Description |
---|---|
void |
close()
Closes this request queue.
|
boolean |
isClosed()
Checks whether this request queue is closed.
|
clear, contains, drainTo, drainTo, iterator, offer, offer, peek, poll, poll, put, remainingCapacity, remove, size, spliterator, take, toArray, toArray, toString
add, addAll, element, remove
containsAll, isEmpty, removeAll, retainAll
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
add
addAll, containsAll, equals, hashCode, isEmpty, parallelStream, removeAll, removeIf, retainAll, stream
public void close()
close
in interface Closeable
close
in interface AutoCloseable
Closeable.close()
public boolean isClosed()
Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.