public class NotificationHelper extends Object
ServerNotificationHandler
.Constructor and Description |
---|
NotificationHelper(ServerNotificationHandler serverNotificationHandler,
Class<? extends ServerNotification> notificationClass,
boolean dynamicNotifications)
Creates a new
NotificationHelper that emits notifications of the specified
class over the passed ServerNotificationHandler . |
Modifier and Type | Method and Description |
---|---|
void |
fireNotification(MuleMessage message,
String uri,
FlowConstruct flowConstruct,
int action) |
void |
fireNotification(ServerNotification notification) |
boolean |
isNotificationEnabled() |
public NotificationHelper(ServerNotificationHandler serverNotificationHandler, Class<? extends ServerNotification> notificationClass, boolean dynamicNotifications)
NotificationHelper
that emits notifications of the specified
class over the passed ServerNotificationHandler
.serverNotificationHandler
- The ServerNotificationHandler
tu be used to fire notificationsnotificationClass
- The Class
of the notifications to be fired by this helperdynamicNotifications
- If true, notifications will be fired directly on the ServerNotificationHandler
received as parameter and the handler will be responsible to decide to emit it or not.
If false, at creation time the notification will be checked to be enable or not, if not any notification will be
discarded.public boolean isNotificationEnabled()
public void fireNotification(MuleMessage message, String uri, FlowConstruct flowConstruct, int action)
public void fireNotification(ServerNotification notification)
Copyright © 2003–2015 MuleSoft, Inc.. All rights reserved.