Interface AlertPublisher
- All Known Implementing Classes:
LockFreeAlertPublisher
public interface AlertPublisher
-
Method Summary
Modifier and TypeMethodDescriptionvoidsubscribe(AlertListener listener) Subscribes the providedlistenerto all alertsbooleanunsubscribe(String subscriptionId) Unsubscribes theAlertListenerthat had previouslysubscribed.
-
Method Details
-
publish
- Parameters:
alert- the alert to publish
-
subscribe
Subscribes the providedlistenerto all alerts- Parameters:
listener- the listener- Returns:
- the subscription ID to be used in
unsubscribe(java.lang.String)
-
unsubscribe
Unsubscribes theAlertListenerthat had previouslysubscribed.- Parameters:
subscriptionId- the subscription ID returned bysubscribe(com.atlassian.diagnostics.AlertListener)- Returns:
trueif the listener was unsubscribed,falseif no subscription was found forsubscriptionId
-