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 TypeMethodDescriptionvoidonPingFailure(long webhookId) voidonPingSuccess(long webhookId)
-
Constructor Details
-
WebhookNotificationListenerImpl
public WebhookNotificationListenerImpl(WebhookRegistry webhookRegistry, WebhookHealthStrategy webhookHealthStrategy)
-
-
Method Details
-
onPingSuccess
- Specified by:
onPingSuccessin interfaceWebhookNotificationListener- Throws:
WebhookNotFoundException
-
onPingFailure
- Specified by:
onPingFailurein interfaceWebhookNotificationListener- Throws:
WebhookNotFoundException
-