com.atlassian.crowd.manager.webhook
Class WebhookNotificationListenerImpl

java.lang.Object
  extended by 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
WebhookNotificationListenerImpl(WebhookRegistry webhookRegistry, WebhookHealthStrategy webhookHealthStrategy)
           
 
Method Summary
 void onPingFailure(long webhookId)
           
 void onPingSuccess(long webhookId)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WebhookNotificationListenerImpl

public WebhookNotificationListenerImpl(WebhookRegistry webhookRegistry,
                                       WebhookHealthStrategy webhookHealthStrategy)
Method Detail

onPingSuccess

public void onPingSuccess(long webhookId)
                   throws WebhookNotFoundException
Specified by:
onPingSuccess in interface WebhookNotificationListener
Throws:
WebhookNotFoundException

onPingFailure

public void onPingFailure(long webhookId)
                   throws WebhookNotFoundException
Specified by:
onPingFailure in interface WebhookNotificationListener
Throws:
WebhookNotFoundException


Copyright © 2014 Atlassian. All Rights Reserved.