Package io.aeron.driver.reports
Class LossReportReader
java.lang.Object
io.aeron.driver.reports.LossReportReader
Reader that provides the function to read entries from a
LossReport.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfaceConsumer function to be implemented by caller of the read method. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringCSV style header for using withdefaultEntryConsumer(PrintStream). -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionCreate a defaultLossReportReader.EntryConsumerwhich outputs to a providedPrintStream.static intread(AtomicBuffer buffer, LossReportReader.EntryConsumer entryConsumer) Read aLossReportcontained in the buffer.
-
Field Details
-
LOSS_REPORT_CSV_HEADER
CSV style header for using withdefaultEntryConsumer(PrintStream).- See Also:
-
-
Constructor Details
-
LossReportReader
public LossReportReader()
-
-
Method Details
-
defaultEntryConsumer
Create a defaultLossReportReader.EntryConsumerwhich outputs to a providedPrintStream.- Parameters:
out- to write entries to.- Returns:
- a new
LossReportReader.EntryConsumerwhich outputs to a providedPrintStream.
-
read
Read aLossReportcontained in the buffer. This can be done concurrently.- Parameters:
buffer- containing the loss report.entryConsumer- to be called to accept each entry in the report.- Returns:
- the number of entries read.
-