@Extension public final class DefaultNotificationService extends Object implements NotificationService
| Constructor and Description | 
|---|
| DefaultNotificationService() | 
| Modifier and Type | Method and Description | 
|---|---|
| void | recordBuildCompletion(String buildDetails,
                     hudson.model.Result result,
                     hudson.model.Result previousResult)Records the completion of a build, which may turn out to generate a notification. | 
| void | setConfiguration(Configuration configuration) | 
| void | setNotificationCleanupService(NotificationCleanupService cleanupService) | 
| void | setNotificationFactory(NotificationFactory factory) | 
| void | setNotificationRepository(NotificationRepository repository) | 
| NewNotificationsResult | waitForNewNotifications(NotificationId previous,
                       long timeoutMs)Returns every  Notificationthat has been registered after the previously encountered
 notification, or waits for new ones to arrive. | 
public void setNotificationRepository(NotificationRepository repository)
public void setNotificationFactory(NotificationFactory factory)
public void setConfiguration(Configuration configuration)
public void setNotificationCleanupService(NotificationCleanupService cleanupService)
public NewNotificationsResult waitForNewNotifications(NotificationId previous, long timeoutMs)
NotificationServiceNotification that has been registered after the previously encountered
 notification, or waits for new ones to arrive.waitForNewNotifications in interface NotificationServiceprevious - the last encountered NotificationId or null to list all each onetimeoutMs - the number of milliseconds to wait for new notifications before returning an empty
  resultNewNotificationsResultpublic void recordBuildCompletion(String buildDetails, hudson.model.Result result, hudson.model.Result previousResult)
NotificationServicerecordBuildCompletion in interface NotificationServicebuildDetails - a simple string-representation of the build that completedresult - the outcome of the buildpreviousResult - the outcome of the previous build or nullCopyright © 2004-2011. All Rights Reserved.