Package com.newrelic.telemetry
Interface NotificationHandler
-
- All Known Implementing Classes:
LoggingNotificationHandler
public interface NotificationHandlerTo handle notifications, an implementation of this interface must be provided.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default voidnoticeError(java.lang.String message, TelemetryBatch<? extends Telemetry> batch)Notice error events.voidnoticeError(java.lang.String message, java.lang.Throwable throwable, TelemetryBatch<? extends Telemetry> batch)Notice error events.default voidnoticeInfo(java.lang.String message, TelemetryBatch<? extends Telemetry> batch)Notice info events.voidnoticeInfo(java.lang.String message, java.lang.Exception exception, TelemetryBatch<? extends Telemetry> batch)Notice info events.
-
-
-
Method Detail
-
noticeInfo
default void noticeInfo(java.lang.String message, TelemetryBatch<? extends Telemetry> batch)Notice info events.- Parameters:
message- the message provided byTelemetryClientbatch- 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 byTelemetryClientexception- the Exception provided byTelemetryClientbatch- 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 byTelemetryClientbatch- 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 byTelemetryClientthrowable- the throwable provided byTelemetryClientbatch- the telemetry batch that was sent
-
-