Class FileBackedByteQueue
java.lang.Object
java.util.AbstractCollection<E>
java.util.AbstractQueue<E>
de.bsvrz.dav.daf.util.fileBackedQueue.FileBackedQueue<java.lang.Byte>
de.bsvrz.dav.daf.util.fileBackedQueue.FileBackedByteQueue
- All Implemented Interfaces:
java.lang.Iterable<java.lang.Byte>,java.util.Collection<java.lang.Byte>,java.util.Queue<java.lang.Byte>
public final class FileBackedByteQueue extends FileBackedQueue<java.lang.Byte>
-
Constructor Summary
Constructors Constructor Description FileBackedByteQueue(int memoryCapacity, long filesystemCapacity)Erstellt eine neue Queue, die durch ein Dateisystem unterstützt wird und so recht groß werden kann. -
Method Summary
Methods inherited from class de.bsvrz.dav.daf.util.fileBackedQueue.FileBackedQueue
clear, getDiskCapacity, getDiskUsed, getMemoryCapacity, getMemoryUsed, iterator, offer, peek, poll, size, toStringMethods inherited from class java.util.AbstractQueue
add, addAll, element, removeMethods inherited from class java.util.AbstractCollection
contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArrayMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface java.util.Collection
contains, containsAll, equals, hashCode, isEmpty, parallelStream, remove, removeAll, removeIf, retainAll, spliterator, stream, toArray, toArray, toArrayMethods inherited from interface java.lang.Iterable
forEach
-
Constructor Details
-
FileBackedByteQueue
public FileBackedByteQueue(int memoryCapacity, long filesystemCapacity)Erstellt eine neue Queue, die durch ein Dateisystem unterstützt wird und so recht groß werden kann.- Parameters:
memoryCapacity- Wie viel Speicher in Bytes maximal im Arbeitsspeicher gehalten werden sollen.filesystemCapacity- Wie viel Speicher in Bytes maximal im Dateisystem gehalten werden sollen. Es handelt sich um einen Richtwert, der geringfügig überschritten werden kann.
-