org.sonar.api.notifications
Class NotificationChannel
java.lang.Object
org.sonar.api.notifications.NotificationChannel
- All Implemented Interfaces:
- Extension, ServerComponent, ServerExtension
- Direct Known Subclasses:
- EmailNotificationChannel
public abstract class NotificationChannel
- extends Object
- implements ServerExtension
Provides logic to deliver notification.
For example:
- email - sends email as soon as possible
- email (digest) - collects notifications and sends them together once a day
- gtalk - sends a chat message as soon as possible
- Since:
- 2.10
NotificationChannel
public NotificationChannel()
getKey
public String getKey()
- Returns:
- unique key of this channel
deliver
public abstract void deliver(Notification notification,
String username)
toString
public String toString()
- Overrides:
toString
in class Object
Copyright © 2009-2012 SonarSource. All Rights Reserved.