Package alex.mojaki.s3upload
Class ClosableQueue<T>
- java.lang.Object
-
- java.util.AbstractCollection<E>
-
- java.util.AbstractQueue<E>
-
- java.util.concurrent.ArrayBlockingQueue<T>
-
- alex.mojaki.s3upload.ClosableQueue<T>
-
- All Implemented Interfaces:
Serializable,Iterable<T>,Collection<T>,BlockingQueue<T>,Queue<T>
public class ClosableQueue<T> extends ArrayBlockingQueue<T>
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ClosableQueue(int capacity)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()voidput(T t)-
Methods inherited from class java.util.concurrent.ArrayBlockingQueue
add, clear, contains, drainTo, drainTo, forEach, iterator, offer, offer, peek, poll, poll, remainingCapacity, remove, removeAll, removeIf, retainAll, size, spliterator, take, toArray, toArray, toString
-
Methods inherited from class java.util.AbstractQueue
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.Collection
addAll, containsAll, equals, hashCode, isEmpty, parallelStream, stream, toArray
-
-
-
-
Method Detail
-
close
public void close()
-
put
public void put(T t) throws InterruptedException
- Specified by:
putin interfaceBlockingQueue<T>- Overrides:
putin classArrayBlockingQueue<T>- Throws:
InterruptedException
-
-