Package io.sentry.cache.tape
Class QueueFile.Builder
java.lang.Object
io.sentry.cache.tape.QueueFile.Builder
- Enclosing class:
- QueueFile
Fluent API for creating
QueueFile
instances.-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
Builder
Start constructing a new queue backed by the given file.
-
-
Method Details
-
zero
When true, removing an element will also overwrite data with zero bytes. -
size
The maximum number of elements this queue can hold before wrapping around. -
build
Constructs a new queue backed by the given builder. Only one instance should access a given file at a time.- Throws:
IOException
-