T - the type of elements in this queuepublic class BatchedFileQueueBuilder<T> extends FileQueue.Builder<BatchedFileQueueBuilder<T>,T>
| Modifier and Type | Field and Description |
|---|---|
static int |
MEMORY_ELEMENTS_MIN |
| Constructor and Description |
|---|
BatchedFileQueueBuilder() |
| Modifier and Type | Method and Description |
|---|---|
BatchedFileQueueBuilder<T> |
batchSize(int value)
Sets the amount of queue's elements placed in one WAL file.
|
protected FileQueue<T> |
createQueue()
The method for producing a new queue on each call based on builder's parameters.
|
protected void |
validateAndSetDefaults()
The method for builder's parameters validation and setting the default values,
before creating a new queue.
|
build, compressed, deserializer, folder, folder, limit, name, restoreFromDisk, serializer, walpublic static final int MEMORY_ELEMENTS_MIN
public BatchedFileQueueBuilder<T> batchSize(int value)
value - the new valueprotected FileQueue<T> createQueue()
FileQueue.BuildercreateQueue in class FileQueue.Builder<BatchedFileQueueBuilder<T>,T>protected void validateAndSetDefaults()
FileQueue.BuildervalidateAndSetDefaults in class FileQueue.Builder<BatchedFileQueueBuilder<T>,T>Copyright © 2019 Infobip Ltd.. All rights reserved.