Interface WebhookNotificationListener
public interface WebhookNotificationListener
Reacts to the outcome of Webhook notifications.
- Since:
- v2.7
-
Method Summary
Modifier and TypeMethodDescriptionvoidonPingFailure(long webhookId) Reacts to a failed notification delivery.voidonPingSuccess(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
-