Package io.aeron.driver.buffer
Interface LogFactory
- All Superinterfaces:
AutoCloseable
- All Known Implementing Classes:
FileStoreLogFactory
Factory interface for creating the log buffers under publications and images.
-
Method Summary
Modifier and TypeMethodDescriptionvoidclose()newImage(long correlationId, int termBufferLength, boolean useSparseFiles) Create a newRawLogfor an image of a publication.newPublication(long correlationId, int termBufferLength, boolean useSparseFiles) Create a newRawLogfor a publication.
-
Method Details
-
close
void close()- Specified by:
closein interfaceAutoCloseable
-
newPublication
Create a newRawLogfor a publication.- Parameters:
correlationId- which is the original registration id for a publication.termBufferLength- length of the buffer for each term.useSparseFiles- should the file be sparse so the pages are only allocated as required.- Returns:
- the newly created
RawLog
-
newImage
Create a newRawLogfor an image of a publication.- Parameters:
correlationId- assigned to uniquely identify an image on a driver.termBufferLength- length of the buffer for each term.useSparseFiles- should the file be sparse so the pages are only allocated as required.- Returns:
- the newly created
RawLog
-