Interface NotificationHandler

  • All Known Implementing Classes:
    LoggingNotificationHandler

    public interface NotificationHandler
    To handle notifications, an implementation of this interface must be provided.
    • Method Detail

      • noticeInfo

        default void noticeInfo​(java.lang.String message,
                                TelemetryBatch<? extends Telemetry> batch)
        Notice info events.
        Parameters:
        message - the message provided by TelemetryClient
        batch - the telemetry batch that was sent
      • noticeInfo

        void noticeInfo​(java.lang.String message,
                        java.lang.Exception exception,
                        TelemetryBatch<? extends Telemetry> batch)
        Notice info events.
        Parameters:
        message - the message provided by TelemetryClient
        exception - the Exception provided by TelemetryClient
        batch - the telemetry batch that was sent
      • noticeError

        default void noticeError​(java.lang.String message,
                                 TelemetryBatch<? extends Telemetry> batch)
        Notice error events.
        Parameters:
        message - the message provided by TelemetryClient
        batch - the telemetry batch that was sent
      • noticeError

        void noticeError​(java.lang.String message,
                         java.lang.Throwable throwable,
                         TelemetryBatch<? extends Telemetry> batch)
        Notice error events.
        Parameters:
        message - the message provided by TelemetryClient
        throwable - the throwable provided by TelemetryClient
        batch - the telemetry batch that was sent