public class OptimisedNotificationHandler extends Object implements ServerNotificationHandler
| Constructor and Description |
|---|
OptimisedNotificationHandler(ServerNotificationHandler delegate,
Class<? extends ServerNotification> type) |
| Modifier and Type | Method and Description |
|---|---|
void |
fireNotification(ServerNotification notification) |
boolean |
isListenerRegistered(ServerNotificationListener listener) |
boolean |
isNotificationDynamic() |
boolean |
isNotificationEnabled(Class<? extends ServerNotification> notfnClass)
This returns a very "conservative" value - it is true if the notification or any subclass would be accepted.
|
public OptimisedNotificationHandler(ServerNotificationHandler delegate, Class<? extends ServerNotification> type)
public boolean isNotificationDynamic()
isNotificationDynamic in interface ServerNotificationHandlerpublic boolean isListenerRegistered(ServerNotificationListener listener)
isListenerRegistered in interface ServerNotificationHandlerpublic boolean isNotificationEnabled(Class<? extends ServerNotification> notfnClass)
isNotificationEnabled in interface ServerNotificationHandlernotfnClass - Either the notification class being generated or some superclasspublic void fireNotification(ServerNotification notification)
fireNotification in interface ServerNotificationHandlerCopyright © 2003–2017 MuleSoft, Inc.. All rights reserved.