public class FileQueue<T> extends AbstractQueue<T> implements Closeable
Queue implementation.Queue| Constructor and Description |
|---|
FileQueue() |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
static <V> FileQueueBuilder<V> |
in(Path folder) |
static <V> FileQueueBuilder<V> |
in(String folder) |
Iterator<T> |
iterator() |
long |
longSize()
Returns the number of elements in this collection.
|
boolean |
offer(T element) |
T |
peek() |
T |
poll() |
int |
size() |
contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitcontains, containsAll, equals, hashCode, isEmpty, parallelStream, remove, removeAll, removeIf, retainAll, spliterator, stream, toArray, toArraypublic static <V> FileQueueBuilder<V> in(String folder)
public static <V> FileQueueBuilder<V> in(Path folder)
public Iterator<T> iterator()
iterator in interface Iterable<T>iterator in interface Collection<T>iterator in class AbstractCollection<T>public int size()
size in interface Collection<T>size in class AbstractCollection<T>public long longSize()
public void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableIOExceptionCopyright © 2018 Infobip Ltd.. All rights reserved.