T - the type of elements in this queuepublic abstract class FileQueue<T> extends AbstractQueue<T> implements AutoCloseable
Queue implementation.| Modifier and Type | Class and Description |
|---|---|
static class |
FileQueue.Builder<SELF extends FileQueue.Builder<SELF,T>,T>
The abstract file-based queue builder with common options and parameters
for all such queues implementations.
|
| Constructor and Description |
|---|
FileQueue() |
| Modifier and Type | Method and Description |
|---|---|
static <T> BatchedFileQueueBuilder<T> |
batched()
Start creating batched queue implementation.
|
abstract void |
close() |
abstract void |
compress()
Compresses the WAL files manually.
|
abstract long |
diskSize()
Returns the file system backed size occupied by the queue.
|
abstract void |
flush()
Flushes all this queue's data to the disk.
|
abstract long |
longSize()
Returns the number of elements in this collection.
|
static <T> SyncedFileQueueBuilder<T> |
synced()
Start creating synced queue implementation.
|
contains, containsAll, isEmpty, iterator, remove, removeAll, retainAll, size, toArray, toArray, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitcontains, containsAll, equals, hashCode, isEmpty, iterator, parallelStream, remove, removeAll, removeIf, retainAll, size, spliterator, stream, toArray, toArraypublic static <T> SyncedFileQueueBuilder<T> synced()
T - the type of elements in this queuepublic static <T> BatchedFileQueueBuilder<T> batched()
T - the type of elements in this queuepublic abstract long longSize()
public abstract long diskSize()
public abstract void flush()
public abstract void compress()
public abstract void close()
close in interface AutoCloseableCopyright © 2019 Infobip Ltd.. All rights reserved.