Package org.agrona.concurrent.errors
Interface ErrorConsumer
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Callback handler for consuming errors encountered in a
DistinctErrorLog
.-
Method Summary
-
Method Details
-
accept
void accept(int observationCount, long firstObservationTimestamp, long lastObservationTimestamp, String encodedException) Callback for accepting errors encountered in the log.- Parameters:
observationCount
- the number of times this distinct exception has been recorded.firstObservationTimestamp
- time the first observation was recorded.lastObservationTimestamp
- time the last observation was recorded.encodedException
- String encoding of the exception and stack trace in UTF-8 format.
-