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.

    @FunctionalInterface
    public interface ErrorConsumer
    Callback handler for consuming errors encountered in a DistinctErrorLog.
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      void accept​(int observationCount, long firstObservationTimestamp, long lastObservationTimestamp, java.lang.String encodedException)
      Callback for accepting errors encountered in the log.
    • Method Detail

      • accept

        void accept​(int observationCount,
                    long firstObservationTimestamp,
                    long lastObservationTimestamp,
                    java.lang.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.