Class WebhookNotificationListenerImpl
java.lang.Object
com.atlassian.crowd.manager.webhook.WebhookNotificationListenerImpl
- All Implemented Interfaces:
WebhookNotificationListener
@Transactional
public class WebhookNotificationListenerImpl
extends Object
implements WebhookNotificationListener
Reacts to the outcome of Webhook notifications by registering this outcome, updating the Webhook and,
if decided by the WebhookHealthStrategy, removing the Webhook.
- Since:
- v2.7
-
Constructor Summary
ConstructorsConstructorDescriptionWebhookNotificationListenerImpl
(WebhookRegistry webhookRegistry, WebhookHealthStrategy webhookHealthStrategy) -
Method Summary
Modifier and TypeMethodDescriptionvoid
onPingFailure
(long webhookId) Reacts to a failed notification delivery.void
onPingSuccess
(long webhookId) Reacts to a successful notification delivery.
-
Constructor Details
-
WebhookNotificationListenerImpl
public WebhookNotificationListenerImpl(WebhookRegistry webhookRegistry, WebhookHealthStrategy webhookHealthStrategy)
-
-
Method Details
-
onPingSuccess
Description copied from interface:WebhookNotificationListener
Reacts to a successful notification delivery.- Specified by:
onPingSuccess
in interfaceWebhookNotificationListener
- Parameters:
webhookId
- id of the Webhook- Throws:
WebhookNotFoundException
- if the Webhook with the given id cannot be found
-
onPingFailure
Description copied from interface:WebhookNotificationListener
Reacts to a failed notification delivery.- Specified by:
onPingFailure
in interfaceWebhookNotificationListener
- Parameters:
webhookId
- id of the Webhook- Throws:
WebhookNotFoundException
- if the Webhook with the given id cannot be found
-