Package io.aeron.driver.buffer
Interface RawLog
- All Superinterfaces:
AutoCloseable
Represents the collection of raw metadata and associated term buffers for publication and image logs.
-
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
Close the resource regardless of iffree()
has succeeded or not.fileName()
Get the fully qualified file name for the log file.boolean
free()
Free the mapped buffers and delete the file.metaData()
The meta data storage for the overall log.Slice the underlying buffer to provide an array of term buffers in order.An array of term buffer partitions.int
The length of each term in bytes.
-
Method Details
-
termLength
int termLength()The length of each term in bytes.- Returns:
- the length of each term in bytes.
-
termBuffers
UnsafeBuffer[] termBuffers()An array of term buffer partitions.- Returns:
- an array of the term buffer partitions.
-
metaData
UnsafeBuffer metaData()The meta data storage for the overall log.- Returns:
- the meta data storage for the overall log.
-
sliceTerms
ByteBuffer[] sliceTerms()Slice the underlying buffer to provide an array of term buffers in order.- Returns:
- slices of the underlying buffer to provide an array of term buffers in order.
-
fileName
String fileName()Get the fully qualified file name for the log file.- Returns:
- the fully qualified file name for the log file.
-
free
boolean free()Free the mapped buffers and delete the file.- Returns:
- true if successful or false if it should be reattempted.
-
close
void close()Close the resource regardless of iffree()
has succeeded or not.- Specified by:
close
in interfaceAutoCloseable
-