Class RequestQueue<E>
- java.lang.Object
-
- java.util.AbstractCollection<E>
-
- java.util.AbstractQueue<E>
-
- java.util.concurrent.LinkedBlockingQueue<E>
-
- org.apache.flink.runtime.io.disk.iomanager.RequestQueue<E>
-
- All Implemented Interfaces:
Closeable
,Serializable
,AutoCloseable
,Iterable<E>
,Collection<E>
,BlockingQueue<E>
,Queue<E>
public final class RequestQueue<E> extends LinkedBlockingQueue<E> implements Closeable
ALinkedBlockingQueue
that is extended with closing methods.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description RequestQueue()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
Closes this request queue.boolean
isClosed()
Checks whether this request queue is closed.-
Methods inherited from class java.util.concurrent.LinkedBlockingQueue
clear, contains, drainTo, drainTo, forEach, iterator, offer, offer, peek, poll, poll, put, remainingCapacity, remove, removeAll, removeIf, retainAll, size, spliterator, take, toArray, toArray, toString
-
Methods inherited from class java.util.AbstractQueue
add, addAll, element, remove
-
Methods inherited from class java.util.AbstractCollection
containsAll, isEmpty
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface java.util.concurrent.BlockingQueue
add
-
Methods inherited from interface java.util.Collection
addAll, containsAll, equals, hashCode, isEmpty, parallelStream, stream, toArray
-
-
-
-
Method Detail
-
close
public void close()
Closes this request queue.- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- See Also:
Closeable.close()
-
isClosed
public boolean isClosed()
Checks whether this request queue is closed.- Returns:
- True, if the queue is closed, false otherwise.
-
-