public class LossReportReader extends Object
LossReport.| Modifier and Type | Class and Description |
|---|---|
static interface |
LossReportReader.EntryConsumer
Consumer function to be implemented by caller of the read method.
|
| Modifier and Type | Field and Description |
|---|---|
static String |
LOSS_REPORT_CSV_HEADER
CSV style header for using with
defaultEntryConsumer(PrintStream). |
| Constructor and Description |
|---|
LossReportReader() |
| Modifier and Type | Method and Description |
|---|---|
static LossReportReader.EntryConsumer |
defaultEntryConsumer(PrintStream out)
Create a default
LossReportReader.EntryConsumer which outputs to a provided PrintStream. |
static int |
read(AtomicBuffer buffer,
LossReportReader.EntryConsumer entryConsumer)
Read a
LossReport contained in the buffer. |
public static final String LOSS_REPORT_CSV_HEADER
defaultEntryConsumer(PrintStream).public static LossReportReader.EntryConsumer defaultEntryConsumer(PrintStream out)
LossReportReader.EntryConsumer which outputs to a provided PrintStream.out - to write entries to.LossReportReader.EntryConsumer which outputs to a provided PrintStream.public static int read(AtomicBuffer buffer, LossReportReader.EntryConsumer entryConsumer)
LossReport contained in the buffer. This can be done concurrently.buffer - containing the loss report.entryConsumer - to be called to accept each entry in the report.Copyright © 2014-2020 Real Logic Limited. All Rights Reserved.