Package org.sonar.api.notifications
Class NotificationChannel
- java.lang.Object
-
- org.sonar.api.notifications.NotificationChannel
-
@ServerSide @ComputeEngineSide @ExtensionPoint @Deprecated public abstract class NotificationChannel extends java.lang.Object
Deprecated.in 7.8. This API is not usable, incomplete and suffers from significant performance hotspots.Plugins should extend this class to provide implementation on a specific way to deliver notifications. 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
-
-
Constructor Summary
Constructors Constructor Description NotificationChannel()
Deprecated.
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Deprecated Methods Modifier and Type Method Description abstract boolean
deliver(Notification notification, java.lang.String userlogin)
Deprecated.Implements the delivery of the given notification to the given user.java.lang.String
getKey()
Deprecated.Returns the unique key of this channel.java.lang.String
toString()
Deprecated.
-
-
-
Method Detail
-
getKey
public java.lang.String getKey()
Deprecated.Returns the unique key of this channel.- Returns:
- the key
-
deliver
public abstract boolean deliver(Notification notification, java.lang.String userlogin)
Deprecated.Implements the delivery of the given notification to the given user.- Parameters:
notification
- the notification to deliveruserlogin
- the login of the user who should receive the notification- Returns:
- whether the notification was sent or not
-
toString
public java.lang.String toString()
Deprecated.- Overrides:
toString
in classjava.lang.Object
-
-