@Transactional public class WebhookNotificationListenerImpl extends Object implements WebhookNotificationListener
Constructor and Description |
---|
WebhookNotificationListenerImpl(WebhookRegistry webhookRegistry,
WebhookHealthStrategy webhookHealthStrategy) |
Modifier and Type | Method and Description |
---|---|
void |
onPingFailure(long webhookId)
Reacts to a failed notification delivery.
|
void |
onPingSuccess(long webhookId)
Reacts to a successful notification delivery.
|
public WebhookNotificationListenerImpl(WebhookRegistry webhookRegistry, WebhookHealthStrategy webhookHealthStrategy)
public void onPingSuccess(long webhookId) throws WebhookNotFoundException
WebhookNotificationListener
onPingSuccess
in interface WebhookNotificationListener
webhookId
- id of the WebhookWebhookNotFoundException
- if the Webhook with the given id cannot be foundpublic void onPingFailure(long webhookId) throws WebhookNotFoundException
WebhookNotificationListener
onPingFailure
in interface WebhookNotificationListener
webhookId
- id of the WebhookWebhookNotFoundException
- if the Webhook with the given id cannot be foundCopyright © 2020 Atlassian. All rights reserved.