Interface WebhookNotificationListener
- All Known Implementing Classes:
WebhookNotificationListenerImpl
public interface WebhookNotificationListener
Reacts to the outcome of Webhook notifications.
- Since:
- v2.7
-
Method Summary
Modifier and TypeMethodDescriptionvoid
onPingFailure
(long webhookId) Reacts to a failed notification delivery.void
onPingSuccess
(long webhookId) Reacts to a successful notification delivery.
-
Method Details
-
onPingSuccess
Reacts to a successful notification delivery.- Parameters:
webhookId
- id of the Webhook- Throws:
WebhookNotFoundException
- if the Webhook with the given id cannot be found
-
onPingFailure
Reacts to a failed notification delivery.- Parameters:
webhookId
- id of the Webhook- Throws:
WebhookNotFoundException
- if the Webhook with the given id cannot be found
-