Interface WebhookNotificationListener

All Known Implementing Classes:
WebhookNotificationListenerImpl

public interface WebhookNotificationListener
Reacts to the outcome of Webhook notifications.
Since:
v2.7
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    onPingFailure(long webhookId)
    Reacts to a failed notification delivery.
    void
    onPingSuccess(long webhookId)
    Reacts to a successful notification delivery.
  • Method Details

    • onPingSuccess

      void onPingSuccess(long webhookId) throws WebhookNotFoundException
      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

      void onPingFailure(long webhookId) throws WebhookNotFoundException
      Reacts to a failed notification delivery.
      Parameters:
      webhookId - id of the Webhook
      Throws:
      WebhookNotFoundException - if the Webhook with the given id cannot be found