public class ErrorLogReader extends Object
DistinctErrorLog
.
The read methods are thread safe.
Constructor and Description |
---|
ErrorLogReader() |
Modifier and Type | Method and Description |
---|---|
static boolean |
hasErrors(AtomicBuffer buffer)
Has the error buffer any recorded errors?
|
static int |
read(AtomicBuffer buffer,
ErrorConsumer consumer)
Read all the errors in a log since the creation of the log.
|
static int |
read(AtomicBuffer buffer,
ErrorConsumer consumer,
long sinceTimestamp)
Read all the errors in a log since a given timestamp.
|
public static boolean hasErrors(AtomicBuffer buffer)
buffer
- containing the DistinctErrorLog
.public static int read(AtomicBuffer buffer, ErrorConsumer consumer)
buffer
- containing the DistinctErrorLog
.consumer
- to be called for each exception encountered.public static int read(AtomicBuffer buffer, ErrorConsumer consumer, long sinceTimestamp)
buffer
- containing the DistinctErrorLog
.consumer
- to be called for each exception encountered.sinceTimestamp
- for filtering errors that have been recorded since this time.Copyright © 2014-2020 Real Logic Limited. All Rights Reserved.